vti / protocol-websocket

Protocol::WebSocket
Other
40 stars 27 forks source link

added interface and documentation to Frame class #20

Closed debug-ito closed 11 years ago

debug-ito commented 11 years ago

I added some interface to Frame class mostly because I want to craft WebSocket frames to send in a more fine-grained way.

Some of the added interfaces were already implemented, but they are now clearly documented and tested.

Overview of the changes:

vti commented 11 years ago

Wow. Nice work!

Don't remember why append is destructive. Probably for ease of work with AnyEvent, so the input buffer is automatically cleared. Maybe this is not a very good idea after all :)