This property contains the app that express-ws was set up on.
This property contains the app that express-ws was set up on.
wsInstance.app
Sets up express-ws on the given router (or other Router-like object).
Sets up express-ws on the given router (or other Router-like object). You will only need this in two scenarios:
In most cases, you won't need this at all.
wsInstance.applyTo(router)
Returns the underlying WebSocket server/handler.
Returns the underlying WebSocket server/handler. You can use wsInstance.getWss().clients to obtain a list of all the connected WebSocket clients for this server.
wsInstance.getWss()
Web Socket Instance