修复了多余的闭合大括号,同时移除了重复的连接触发代码,避免不必要的连接调用
@@ -297,9 +297,6 @@ export class YjsRedisProvider extends Observable<string> {
if (this.ws?.readyState === WebSocket.OPEN) {
this.ws.send(data)
}
- }
- this.shouldConnect = true
- this.connect()
public disconnect(): void {