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) {
|
public static init(httpServer: httpServerType) {
|
||||||
this.io = new Server(httpServer, {
|
this.io = new Server(httpServer, {
|
||||||
|
path: "/api/socket.io",
|
||||||
cors: {
|
cors: {
|
||||||
origin: "*",
|
origin: "*",
|
||||||
methods: ["GET", "POST"],
|
methods: ["GET", "POST"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue