Note that we immediately pause websockets
This commit is contained in:
parent
00cfd9bdf1
commit
f136a60093
|
@ -27,6 +27,10 @@ interface InternalWebsocketRequest extends pluginapi.WebsocketRequest {
|
||||||
export class WebsocketRouter {
|
export class WebsocketRouter {
|
||||||
public readonly router = express.Router()
|
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 {
|
public ws(route: expressCore.PathParams, ...handlers: pluginapi.WebSocketHandler[]): void {
|
||||||
this.router.get(
|
this.router.get(
|
||||||
route,
|
route,
|
||||||
|
|
Loading…
Reference in New Issue