Modifying payload_len_small in libwsclient_send by OR'ing with 0x80
Just set the frame byte appropriately without modifying payload_len_small
Also move setting payload_sz back to WS_HELPER_RECV_BUF size
*before* memsetting.. overflowing my bounds there. Woops.
This function binds UNIX socket listener with specified path.
Any data received by this UNIX socket is sent out as a
WebSocket text frame. This allows a user to send data
on behalf of a running libwsclient program. Will add
some documentation for the entire library soon. Will go
into depth there.
Send a message to stderr. I have an inkling one
of my programs is timing out because it's not responding
to server PINGs. This might tell me that. Useful anyway.
Needed to have wsclient structure passed to callbacks for references
to sockfd or other API functions that need it. (libwsclient_close)
Also, respond to close frames correctly. Right now, we just wait
on server to close TCP connection without a timeout.