added clean close method
removed vexatious line
removed vexatious line
removed vexatious line
resolved some issue and added method to read readystate of the websocket
* Calling ::close() when txbuf empties and readyState is CLOSING
* Removing unnecessary const.
* Fixing up spacing to be consistent with rest of code.
Setting readyState to CLOSED when calling ::close()
Adding Makefile.
* Switching from char to uint8_t
* Adding sockfd to ::close()
Updating example to close when they receive "world".