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