https://github.com/gorilla/websocket.git

Craig Jackson 8e0dcebbf0 Use WriteJSON and ReadJSON on Conn struct. 12 gadi atpakaļ
examples 273ecadfca Initial commit 12 gadi atpakaļ
.gitignore 273ecadfca Initial commit 12 gadi atpakaļ
LICENSE 273ecadfca Initial commit 12 gadi atpakaļ
README.md 273ecadfca Initial commit 12 gadi atpakaļ
client.go 273ecadfca Initial commit 12 gadi atpakaļ
client_server_test.go 273ecadfca Initial commit 12 gadi atpakaļ
conn.go 1627eef2a3 Improve documentation. 12 gadi atpakaļ
conn_test.go 273ecadfca Initial commit 12 gadi atpakaļ
doc.go 273ecadfca Initial commit 12 gadi atpakaļ
json.go 8e0dcebbf0 Use WriteJSON and ReadJSON on Conn struct. 12 gadi atpakaļ
json_test.go 8e0dcebbf0 Use WriteJSON and ReadJSON on Conn struct. 12 gadi atpakaļ
server.go 1627eef2a3 Improve documentation. 12 gadi atpakaļ
server_test.go 80c1e5a741 Add Subprotocols helper function. 12 gadi atpakaļ
util.go 273ecadfca Initial commit 12 gadi atpakaļ

README.md

WebSocket

This project is a Go implementation of the WebSocket protocol.

The project passes the server tests in the Autobahn WebSockets Test Suite using the application in the examples/autobahn subdirectory.

Documentation

Features

  • Send and receive ping, pong and close control messages.
  • Limit size of received messages.
  • Stream messages.
  • Specify IO buffer sizes.
  • Application has full control over origin checks and sub-protocol negotiation.

Installation

go get github.com/gorilla/websocket