**
* @param {Application} app the express application
* @param {import("http").Server | import("https").Server} [server] optional - if you use HTTPS you will need to pass in the server
*/
module.exports = (app, server) => {
if (!wsInstance) wsInstance = ews(app, server);
const wsServer = wsInstance.getWss();
/**
* This map stores all the streams in existance, keyed by the URL.
* This means we only ever create one InboundStream per URL.
* @type {{ [url: string]: InboundStreamWrapper }}
*/
Hello !
Do you realy need express websocket ?
This is how I use your lib:
I comment
and i'm using basic websocket , seems to work