Skip to content

Commit

Permalink
Update socket.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
markiianbabiak committed Oct 24, 2024
1 parent 851ea4c commit 9672dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/socket/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Socket {
async init(server: Server, redis: RedisClient) {
try {
const io = new socketIO.Server(server, {
transports: ['websocket', 'polling'], //transports used by the websocket
transports: ['websocket', 'polling'],
cors: {
origin: process.env.CKBOARD_SERVER_ADDRESS || 'http://localhost:4200', // Specific origin or localhost
methods: ['GET', 'POST'],
Expand Down

0 comments on commit 9672dec

Please sign in to comment.