Archived
1
0

Note that we immediately pause websockets

This commit is contained in:
Asher 2021-01-22 11:33:16 -06:00
parent 00cfd9bdf1
commit f136a60093
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -27,6 +27,10 @@ interface InternalWebsocketRequest extends pluginapi.WebsocketRequest {
export class WebsocketRouter {
public readonly router = express.Router()
/**
* Handle a websocket at this route. Note that websockets are immediately
* paused when they come in.
*/
public ws(route: expressCore.PathParams, ...handlers: pluginapi.WebSocketHandler[]): void {
this.router.get(
route,