https://github.com/gorilla/websocket.git
|
|
11 lat temu | |
|---|---|---|
| examples | 11 lat temu | |
| .gitignore | 12 lat temu | |
| .travis.yml | 12 lat temu | |
| LICENSE | 12 lat temu | |
| README.md | 11 lat temu | |
| client.go | 12 lat temu | |
| client_server_test.go | 12 lat temu | |
| conn.go | 11 lat temu | |
| conn_test.go | 11 lat temu | |
| doc.go | 11 lat temu | |
| json.go | 12 lat temu | |
| json_test.go | 12 lat temu | |
| server.go | 11 lat temu | |
| server_test.go | 12 lat temu | |
| util.go | 12 lat temu |
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 |