From f136a600930c9149cae451a5d3ad654fbcdcb0a0 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 22 Jan 2021 11:33:16 -0600 Subject: [PATCH] Note that we immediately pause websockets --- src/node/wsRouter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node/wsRouter.ts b/src/node/wsRouter.ts index e1502c4fb..1ff13aafd 100644 --- a/src/node/wsRouter.ts +++ b/src/node/wsRouter.ts @@ -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,