Separate concept of message and request channels

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-tursoandJanne Savolainen authored and Janne Savolainen committed 2022-06-03 07:49:43 +03:00
1 parent c01e935422
commit fdef6973e3
64 files changed
+685 -497

No files matched your search

@@ -3,10 +3,10 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import type { Channel } from "../channel/channel-injection-token";
import { channelInjectionToken } from "../channel/channel-injection-token";
import type { MessageChannel } from "../channel/message-channel-injection-token";
import { messageChannelInjectionToken } from "../channel/message-channel-injection-token";
export type RootFrameRenderedChannel = Channel;
export type RootFrameRenderedChannel = MessageChannel;
const rootFrameRenderedChannelInjectable = getInjectable({
id: "root-frame-rendered-channel",
@@ -15,7 +15,7 @@ const rootFrameRenderedChannelInjectable = getInjectable({
id: "root-frame-rendered",
}),
injectionToken: channelInjectionToken,
injectionToken: messageChannelInjectionToken,
});
export default rootFrameRenderedChannelInjectable;