Skip to content

Commit 954629f

Browse files
committed
Note that we immediately pause websockets
1 parent fd7669c commit 954629f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/node/wsRouter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ interface InternalWebsocketRequest extends pluginapi.WebsocketRequest {
2727
export class WebsocketRouter {
2828
public readonly router = express.Router()
2929

30+
/**
31+
* Handle a websocket at this route. Note that websockets are immediately
32+
* paused when they come in.
33+
*/
3034
public ws(route: expressCore.PathParams, ...handlers: pluginapi.WebSocketHandler[]): void {
3135
this.router.get(
3236
route,

0 commit comments

Comments
 (0)