mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 04:45:52 +01:00
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 {
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user