Skip to content

Commit

Permalink
server linstn test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ro0t-set committed Nov 3, 2023
1 parent 4266787 commit 983e679
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/notifications/src/notification-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ export class NotificationSocketServer {
return socket
})

// force to use wss instead of ws
server.listen(443)
//this.io mast be a server that accept wss connections
this.io = new Server(server, {
path: '/notifications',
cors: {
origin: '*',
},
})

this.io.on('connection', async (socket) => {
Expand Down

0 comments on commit 983e679

Please sign in to comment.