chore: socket.io的transports默认只使用websocket

This commit is contained in:
王立帮
2025-12-16 11:57:46 +08:00
parent 4b1f80adb5
commit 0bdd6b4dc6

View File

@@ -47,7 +47,7 @@ if (SERVER_MODE !== 'static') {
cors: {
origin: '*',
methods: ['GET', 'POST'],
transports: ['websocket', 'polling', 'flashsocket'],
transports: ['websocket'],
credentials: false
}
});