Send data as string instead of object

This commit is contained in:
haad 2016-03-09 16:09:02 +01:00
parent d31e77215a
commit 2fcee4adb8

View File

@ -43,7 +43,7 @@ class Pubsub {
}
publish(hash, message) {
this._socket.send({ channel: hash, message: message });
this._socket.send(JSON.stringify({ channel: hash, message: message }));
}
_handleMessage(hash, message) {