File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export class Instances {
136
136
instance . webXdc . connectRealtime ( ( data ) => {
137
137
return broadcast (
138
138
wss ,
139
- JSON . stringify ( { type : "sendRealtime " , data } ) ,
139
+ JSON . stringify ( { type : "realtime " , data } ) ,
140
140
) ;
141
141
} ) ;
142
142
} else if ( isSetUpdateListenerMessage ( parsed ) ) {
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ class Processor implements IProcessor {
193
193
194
194
distributeRealtime ( instanceId : string , data : Uint8Array ) {
195
195
this . onMessage ( {
196
- type : "sendRealtime " ,
196
+ type : "realtime-sent " ,
197
197
instanceId : instanceId ,
198
198
instanceColor : getColorForId ( instanceId ) ,
199
199
data,
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ export function createWebXdc(
260
260
) ;
261
261
transport . onConnect ( ( ) => {
262
262
realtime ! . sendHook = ( data ) => {
263
- transport . send ( { type : "realtime " , data } as RealtimeMessage ) ;
263
+ transport . send ( { type : "sendRealtime " , data } ) ;
264
264
log ( "send realtime" , { data } ) ;
265
265
} ;
266
266
} ) ;
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ export type UpdateMessage =
16
16
17
17
export type Message =
18
18
| UpdateMessage
19
- | ( { type : "sendRealtime" ; data : Uint8Array } & InstanceMessage )
20
19
| ( { type : "clear" } & InstanceMessage )
21
20
| ( { type : "connect" } & InstanceMessage )
22
21
| ( { type : "connect-realtime" } & InstanceMessage )
22
+ | ( { type : "realtime-sent" ; data : Uint8Array } & InstanceMessage )
23
23
| ( { type : "realtime-received" ; data : Uint8Array } & InstanceMessage ) ;
You can’t perform that action at this time.
0 commit comments