fix(web): always use websocket transport (#6564)

This commit is contained in:
Jason Rasmussen authored and GitHub committed 2024-01-22 11:37:00 -05:00
1 parent a8efbc6772
commit bd2dbb4944
2 files changed
+6 -1

No files matched your search

@@ -16,7 +16,11 @@ import {
} from '@nestjs/websockets';
import { Server, Socket } from 'socket.io';
@WebSocketGateway({ cors: true, path: '/api/socket.io' })
@WebSocketGateway({
cors: true,
path: '/api/socket.io',
transports: ['websocket'],
})
export class CommunicationRepository
implements OnGatewayConnection, OnGatewayDisconnect, OnGatewayInit, ICommunicationRepository
{
+1
View File
@@ -37,6 +37,7 @@ export const openWebsocketConnection = async () => {
websocket = io('', {
path: '/api/socket.io',
transports: ['websocket'],
reconnection: true,
forceNew: true,
autoConnect: true,