diff --git a/package.json b/package.json index c8d7f3a18e..e73a156bf4 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@types/mocha": "5.2.3", "@types/mongodb": "3.1.2", "@types/ms": "0.7.30", - "@types/node": "10.5.4", + "@types/node": "10.5.5", "@types/parse5": "5.0.0", "@types/portscanner": "2.1.0", "@types/pug": "2.0.4", diff --git a/src/server/api/stream/user-list.ts b/src/server/api/stream/user-list.ts index 33cc2a1ee1..30f94d5251 100644 --- a/src/server/api/stream/user-list.ts +++ b/src/server/api/stream/user-list.ts @@ -8,6 +8,6 @@ export default function(request: websocket.request, connection: websocket.connec // Subscribe stream subscriber.on(`user-list-stream:${listId}`, data => { - connection.send(data); + connection.send(JSON.stringify(data)); }); }