Sets up express-ws on the specified app.
Sets up express-ws on the specified app. This will modify the global Router prototype for Express as well - see the WSConfigOptions.leaveRouterUntouched option for more information on disabling this.
expressWs(app[,server][, options])
WebSocket endpoints for Express applications. Lets you define WebSocket endpoints like any other type of route, and applies regular Express middleware like for anything else.
https://www.npmjs.com/package/express-ws