enhance: socketio sharing /api route
This commit is contained in:
parent
fcf37bb4c1
commit
9b4e1e17c0
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ export default abstract class SocketServer {
|
|||
|
||||
public static init(httpServer: httpServerType) {
|
||||
this.io = new Server(httpServer, {
|
||||
path: "/api/socket.io",
|
||||
cors: {
|
||||
origin: "*",
|
||||
methods: ["GET", "POST"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue