add peerWs to app
This commit is contained in:
parent
aa9963d003
commit
8695256271
@ -41,6 +41,8 @@ export const createInstance = ({ app, server, options }: {
|
||||
realm,
|
||||
config: customConfig
|
||||
});
|
||||
|
||||
app.peerWs = wss;
|
||||
|
||||
wss.on("connection", (client: IClient) => {
|
||||
const messageQueue = realm.getMessageQueueById(client.getId());
|
||||
@ -72,4 +74,4 @@ export const createInstance = ({ app, server, options }: {
|
||||
|
||||
messagesExpire.startMessagesExpiration();
|
||||
checkBrokenConnections.start();
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user