@brainstack/bridge-server
Advanced tools
Comparing version 2.0.45 to 2.0.46
@@ -20,3 +20,2 @@ "use strict"; | ||
this.hub = hub; | ||
hub.on(/^(macro|meso)\.dts\.rawdata\.outgoing$/, this.broadcastToClients.bind(this)); | ||
} | ||
@@ -41,2 +40,3 @@ broadcastToClients(rawData) { | ||
this.wss.on('connection', (ws) => { | ||
this.hub.on(/^(macro|meso)\.dts\.rawdata\.outgoing$/, this.broadcastToClients.bind(this)); | ||
const uuid = this.generateUUID(); | ||
@@ -43,0 +43,0 @@ this.uuidToSocket.set(uuid, ws); |
{ | ||
"name": "@brainstack/bridge-server", | ||
"version": "2.0.45", | ||
"version": "2.0.46", | ||
"description": "Brainstack Bridge Server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -25,3 +25,2 @@ import { EventHub } from '@brainstack/hub'; | ||
this.hub = hub; | ||
hub.on( /^(macro|meso)\.dts\.rawdata\.outgoing$/, this.broadcastToClients.bind(this)); | ||
} | ||
@@ -50,2 +49,3 @@ | ||
this.wss.on('connection', (ws: WebSocket) => { | ||
this.hub.on( /^(macro|meso)\.dts\.rawdata\.outgoing$/, this.broadcastToClients.bind(this)); | ||
const uuid = this.generateUUID(); | ||
@@ -52,0 +52,0 @@ this.uuidToSocket.set(uuid, ws); |
151064