vti / protocol-websocket

Protocol::WebSocket
Other
40 stars 27 forks source link

Frame: add attribute 'code' for close frame #31

Closed tateisu closed 6 years ago

tateisu commented 10 years ago

Hi,

this patch add 'code' attribute for close frame. if frame is close frame and code attribute is defined, encoded code number will be inserted to head of buffer.