feat(nbstore): use polling as ios websocket transport (#10001)

This commit is contained in:
forehalo
2025-02-07 02:44:52 +00:00
parent 61d2cec913
commit c673088cc6
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ class SocketManager {
constructor(endpoint: string) {
this.socketIOManager = new SocketIOManager(endpoint, {
autoConnect: false,
transports: ['websocket'],
transports: [BUILD_CONFIG.isIOS ? 'polling' : 'websocket'],
secure: new URL(endpoint).protocol === 'https:',
// we will handle reconnection by ourselves
reconnection: false,