We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7669c commit 954629fCopy full SHA for 954629f
src/node/wsRouter.ts
@@ -27,6 +27,10 @@ interface InternalWebsocketRequest extends pluginapi.WebsocketRequest {
27
export class WebsocketRouter {
28
public readonly router = express.Router()
29
30
+ /**
31
+ * Handle a websocket at this route. Note that websockets are immediately
32
+ * paused when they come in.
33
+ */
34
public ws(route: expressCore.PathParams, ...handlers: pluginapi.WebSocketHandler[]): void {
35
this.router.get(
36
route,
0 commit comments