Skip to content

Commit a0a8527

Browse files
author
Rishabh Garg
committed
Updated socket library
1 parent 19eb895 commit a0a8527

File tree

3 files changed

+78
-220
lines changed

3 files changed

+78
-220
lines changed

app/config/socket.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ export class Socket {
1717
}
1818
init(server) {
1919
SocketConf.io = io.listen(server, {
20-
log: true
20+
log: true,
21+
cors: {
22+
origin: "*",
23+
methods: ["GET", "POST"]
24+
}
2125
});
2226
this.setupEvent();
2327
}

0 commit comments

Comments
 (0)