mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-25 23:42:30 +00:00
Send data as string instead of object
This commit is contained in:
parent
d31e77215a
commit
2fcee4adb8
@ -43,7 +43,7 @@ class Pubsub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
publish(hash, message) {
|
publish(hash, message) {
|
||||||
this._socket.send({ channel: hash, message: message });
|
this._socket.send(JSON.stringify({ channel: hash, message: message }));
|
||||||
}
|
}
|
||||||
|
|
||||||
_handleMessage(hash, message) {
|
_handleMessage(hash, message) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user