https://github.com/gorilla/websocket.git
|
|
%!s(int64=11) %!d(string=hai) anos | |
|---|---|---|
| examples | %!s(int64=11) %!d(string=hai) anos | |
| .gitignore | %!s(int64=12) %!d(string=hai) anos | |
| .travis.yml | %!s(int64=12) %!d(string=hai) anos | |
| LICENSE | %!s(int64=12) %!d(string=hai) anos | |
| README.md | %!s(int64=11) %!d(string=hai) anos | |
| client.go | %!s(int64=12) %!d(string=hai) anos | |
| client_server_test.go | %!s(int64=12) %!d(string=hai) anos | |
| conn.go | %!s(int64=11) %!d(string=hai) anos | |
| conn_test.go | %!s(int64=11) %!d(string=hai) anos | |
| doc.go | %!s(int64=11) %!d(string=hai) anos | |
| json.go | %!s(int64=12) %!d(string=hai) anos | |
| json_test.go | %!s(int64=12) %!d(string=hai) anos | |
| server.go | %!s(int64=11) %!d(string=hai) anos | |
| server_test.go | %!s(int64=12) %!d(string=hai) anos | |
| util.go | %!s(int64=12) %!d(string=hai) anos |
Gorilla WebSocket is a Go implementation of the WebSocket protocol.
The Gorilla WebSocket package provides a complete and tested implementation of the WebSocket protocol. The package API is stable.
go get github.com/gorilla/websocket
The Gorilla WebSocket package passes the server tests in the Autobahn WebSockets Test Suite using the application in the examples/autobahn subdirectory.
| gorilla | go.net | |
|---|---|---|
| Protocol support | RFC 6455 | RFC 6455 |
| Limit size of received message | Yes | No |
| Send pings and receive pongs | Yes | No |
| Send close message | Yes | No |
| Read message using io.Reader | Yes | No, see note |
| Write message using io.WriteCloser | Yes | No, see note |
| Encode, decode JSON message | Yes | Yes |