Support periodic auth checks in SecurityContext on web socket connections
This commit is contained in:
11
src/http/lifecycle/WebSocketHealthCheckEvent.ts
Normal file
11
src/http/lifecycle/WebSocketHealthCheckEvent.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {Event} from '../../support/bus'
|
||||
import {uuid4} from '../../util'
|
||||
|
||||
/** Event used to tell the server to close the websocket connection. */
|
||||
export class WebSocketHealthCheckEvent implements Event {
|
||||
eventName = '@extollo/lib:WebSocketHealthCheckEvent'
|
||||
|
||||
eventUuid = uuid4()
|
||||
|
||||
shouldBroadcast = false
|
||||
}
|
||||
Reference in New Issue
Block a user