Commit Graph

10 Commits

Author SHA1 Message Date
Gary Burd 92f772e4b3 Misc cleanup
- Fix lint warnings.
- Use standard comment format to mark deprecated identifiers.
- Remove redundant paragraph from doc.
2017-07-18 13:21:30 -07:00
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
Eric Urban ade0fc90f7 Correct documentation, the "ReadJSON" function depends on "Unmarshal", not "Marshal" 2014-08-10 20:42:52 -05:00
Gary Burd 15aed3b4a4 Relicense to the Gorilla WebSocket Authors. 2014-04-18 14:25:11 -07:00
Gary Burd 707d1f6c6b Cleanup issues reported by golint. 2013-12-23 12:08:49 -08:00
Mike Li ccedd444b5 fix typo in ReadJSON deprecated comments 2013-12-23 10:26:55 -08: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