expose websocket to global

This commit is contained in:
SrGooglo 2025-03-25 20:44:50 +00:00
parent c2d89f898c
commit 91b474fd25

View File

@ -70,7 +70,7 @@ export default class HyperExpressEngineNG {
})
if (params.enableWebsockets) {
this.ws = new rtengineng({
this.ws = global.websocket = new rtengineng({
onUpgrade: params.handleWsUpgrade,
onConnection: params.handleWsConnection,
onDisconnect: params.handleWsDisconnect,