Commit Graph

7 Commits

Author SHA1 Message Date
Gary Burd b6ab76f1fe Provide all close frame data to application
- Export closeError.
- Do not convert normal closure and going away to io.EOF.
2015-08-11 10:14:32 -07:00
Gary Burd 2dbddebb82 Improve the errors returned from ReadJSON.
The JSON decoder returns io.EOF when a message is empty or all
whitespace. Convert io.EOF return values from the JSON decoder to
io.ErrUnexpectedEOF so that applications can distinguish between an
error reading the JSON value and the connection closing.
2015-03-09 12:10:02 -07:00
Gary Burd 15aed3b4a4 Relicense to the Gorilla WebSocket Authors. 2014-04-18 14:25:11 -07:00
Craig Jackson bc7ffd7c1e Fix test for deprecated JSON funcs. 2013-10-27 18:33:40 -07:00
Craig Jackson 3d66655aaa Added WriteJSON/ReadJSON deprecated methods for backwards compatibility. 2013-10-27 18:27:32 -07:00
Craig Jackson 8e0dcebbf0 Use WriteJSON and ReadJSON on Conn struct. 2013-10-27 18:27:31 -07:00
Gary Burd 273ecadfca Initial commit 2013-10-16 16:30:59 -07:00