https://github.com/gorilla/websocket.git
|
|
11 vuotta sitten | |
|---|---|---|
| examples | 11 vuotta sitten | |
| .gitignore | 12 vuotta sitten | |
| .travis.yml | 12 vuotta sitten | |
| AUTHORS | 11 vuotta sitten | |
| LICENSE | 11 vuotta sitten | |
| README.md | 11 vuotta sitten | |
| client.go | 11 vuotta sitten | |
| client_server_test.go | 11 vuotta sitten | |
| conn.go | 11 vuotta sitten | |
| conn_test.go | 11 vuotta sitten | |
| doc.go | 11 vuotta sitten | |
| json.go | 11 vuotta sitten | |
| json_test.go | 11 vuotta sitten | |
| server.go | 11 vuotta sitten | |
| server_test.go | 11 vuotta sitten | |
| util.go | 11 vuotta sitten |
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 Test Suite using the application in the examples/autobahn subdirectory.
| gorilla | go.net | |
|---|---|---|
| RFC 6455 Features | ||
| Passes Autobahn Test Suite | Yes | No |
| Receive fragmented message | Yes | No |
| Send close message | Yes | No |
| Send pings and receive pongs | Yes | No |
| Get the type of a received data message | Yes | Yes, see note 2 |
| Other Features | ||
| Limit size of received message | Yes | No |
| Read message using io.Reader | Yes | No, see note 1 |
| Write message using io.WriteCloser | Yes | No, see note 1 |
| Encode, decode JSON message | Yes | Yes |