fix(websocket): configure Socket.IO path for nginx proxy
This commit is contained in:
parent
ab9f479f81
commit
d073bd5a9d
|
|
@ -21,6 +21,7 @@ interface SendMessagePayload {
|
|||
credentials: true,
|
||||
},
|
||||
namespace: '/ws/conversation',
|
||||
path: '/ws/conversation/socket.io',
|
||||
})
|
||||
export class ConversationGateway
|
||||
implements OnGatewayConnection, OnGatewayDisconnect
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ export function useChat() {
|
|||
if (!userId) return;
|
||||
|
||||
const socket = io('/ws/conversation', {
|
||||
path: '/ws/conversation/socket.io',
|
||||
query: { userId },
|
||||
transports: ['websocket'],
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue