Did you know ... Search Documentation:
Predicate ws_send/1
 ws_send(+WSStream) is det[private]
Complete and send the WebSocket message. If the OpCode of the message is close, close the stream.