Skip to content

Commit c813207

Browse files
shesekLawrence Nahum
authored andcommitted
Don't terminate WebSocket messages with a trailing newline
As per https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-basics.html#message-stream
1 parent 45878ed commit c813207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/runits/websocket.runit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh -e
22
exec 2>&1
3-
exec /srv/explorer/websocat/bin/websocat -E -b l-ws-unix:/var/electrum-websocket.sock tcp:127.0.0.1:50001
3+
exec /srv/explorer/websocat/bin/websocat -E --linemode-strip-newlines l-ws-unix:/var/electrum-websocket.sock msg2line:tcp:127.0.0.1:50001

0 commit comments

Comments
 (0)