gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

client sends 0xff and 0x00 at close() #22

Closed mscdex closed 14 years ago

mscdex commented 14 years ago

I recently got web-socket-js set up and working. So far it seems to work pretty well as a drop-in replacement for standard WebSockets, so congratulations on your hard work.

I did notice that when close() is called on the client, it sends 0xff and 0x00 before terminating the connection. I looked at the draft 76 spec, and it mentions that the server is the one that should be sending this to the client, not the other way around.

gimite commented 14 years ago

See last part of section 4.2 in: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76#section-4.2 It says that client sends 0xff 0x00 for closing handshake.

mscdex commented 14 years ago

closing