niv / websocket.nim

websockets for nim
http://niv.github.io/websocket.nim/docs/0.1.1/websocket.html
Other
102 stars 25 forks source link

Add support for close codes and messages #32

Closed metagn closed 6 years ago

metagn commented 6 years ago

Close opcodes can have data after them, the first 2 bytes being unsigned close code and the rest being optional error message. Currently whenever the library sees the close opcode it closes instantly instead of waiting for the remaining data