File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ export type WebXdcMulti = {
29
29
30
30
export type OnMessage = ( message : Message ) => void ;
31
31
32
- export type OnRealtime = ( message : Message ) => void ;
33
-
34
32
export interface IProcessor {
35
33
createClient ( id : string ) : WebXdcMulti ;
36
34
clear ( ) : void ;
Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ export function createWebXdc(
117
117
resolveUpdateListenerPromise = null ;
118
118
}
119
119
} else if ( isRealtimeMessage ( message ) ) {
120
- // Conversion to any because the actual data is a dict representation of Uint8Array
121
- // This is due to JSON.stringify conversion.
122
120
if ( realtime === null ) {
123
121
return
124
122
}
123
+ // Conversion to any because the actual data is a dict representation of Uint8Array
124
+ // This is due to JSON.stringify conversion.
125
125
realtime ! . receive ( new Uint8Array ( Object . values ( message . data as any ) ) ) ;
126
126
} else if ( isClearMessage ( message ) ) {
127
127
log ( "clear" ) ;
You can’t perform that action at this time.
0 commit comments