brandenhall/Arduino-Websocket — pull request #1 by nickludlam (2014-04-30 09:57:01+00:00)
Title: Patch to fix some minor bugs and broaden functionality 

This is a patch which addresses the following:

- Fixed payload length bug; Added protocol header, ping/pong, data masking.
- 16-bit payload lengths were invalid due to a typo, && should be &.
- Added Sec-WebSocket-Protocol header.
- getData and sendData methods now take an opcode value. This is used to implement ping/pong.
- sendEncodedData now applies a mask to the data.
- WebSocket constants have been #defined.