mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 02:24:17 +00:00
expose websocket to global
This commit is contained in:
parent
c2d89f898c
commit
91b474fd25
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user