revert as it was
This commit is contained in:
parent
e5c4a1b8f6
commit
cb567c11bf
@ -34,10 +34,7 @@ export const createInstance = ({ app, server, options }: {
|
|||||||
app.use(options.path, api);
|
app.use(options.path, api);
|
||||||
|
|
||||||
//use mountpath for WS server
|
//use mountpath for WS server
|
||||||
const customConfig = {
|
const customConfig = { ...config, path: path.posix.join(app.path(), options.path, '/') };
|
||||||
...config,
|
|
||||||
path: path.posix.join(app.path(), options.path, '/'),
|
|
||||||
};
|
|
||||||
|
|
||||||
const wss: IWebSocketServer = new WebSocketServer({
|
const wss: IWebSocketServer = new WebSocketServer({
|
||||||
server,
|
server,
|
||||||
@ -75,4 +72,4 @@ export const createInstance = ({ app, server, options }: {
|
|||||||
|
|
||||||
messagesExpire.startMessagesExpiration();
|
messagesExpire.startMessagesExpiration();
|
||||||
checkBrokenConnections.start();
|
checkBrokenConnections.start();
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user