File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
loro-websocket/src/client Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ export interface CrdtDocAdaptor {
5050 errorCode : number ,
5151 reason ?: string
5252 ) => void ;
53- // Legacy hook retained for compatibility
54- handleUpdateError ?: ( error : unknown ) => void ;
5553 destroy : ( ) => void ;
5654}
5755
Original file line number Diff line number Diff line change @@ -1490,8 +1490,8 @@ class LoroWebsocketClientRoomImpl
14901490 try {
14911491 this . crdtAdaptor . applyUpdate ( updates ) ;
14921492 } catch ( error ) {
1493- // Surface to adaptor for custom handling
1494- this . crdtAdaptor . handleUpdateError ?. ( error ) ;
1493+ // Surface failure for visibility and inform server about invalid batch
1494+ console . error ( "Failed to apply remote update" , error ) ;
14951495 // Inform server that the update failed if we can reference the batch ID
14961496 if ( refId && this . client . socket ?. readyState === WebSocket . OPEN ) {
14971497 try {
You can’t perform that action at this time.
0 commit comments