wallet-core/packages/anastasis-webui/watch/send.sh

13 lines
219 B
Bash
Raw Normal View History

2022-06-09 21:11:49 +02:00
#!/bin/bash
#https://datatracker.ietf.org/doc/html/rfc6455#page-65
COMMAND=$1
LEN=$(printf '%x\n' ${#COMMAND})
#text command
OPCODE=81
cat <(echo -n $OPCODE$LEN | xxd -r -p) <(echo -n $COMMAND) >> /tmp/send_signal