File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ export type WebXdcMulti = {
2929
3030export type OnMessage = ( message : Message ) => void ;
3131
32- export type OnRealtime = ( message : Message ) => void ;
33-
3432export interface IProcessor {
3533 createClient ( id : string ) : WebXdcMulti ;
3634 clear ( ) : void ;
Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ export function createWebXdc(
117117 resolveUpdateListenerPromise = null ;
118118 }
119119 } 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.
122120 if ( realtime === null ) {
123121 return
124122 }
123+ // Conversion to any because the actual data is a dict representation of Uint8Array
124+ // This is due to JSON.stringify conversion.
125125 realtime ! . receive ( new Uint8Array ( Object . values ( message . data as any ) ) ) ;
126126 } else if ( isClearMessage ( message ) ) {
127127 log ( "clear" ) ;
You can’t perform that action at this time.
0 commit comments