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. An application can also send and receive messages using the io.WriteCloser and io.Reader interfaces. To send a message, call the connection NextWriter method to get an io.WriteCloser, write the message to the writer and close the writer when done. To receive a message, call the connection NextReader method to get an io.Reader and read until io.EOF is returned. The WebSocket protocol distinguishes between text and binary data messages. Text messages are interpreted as UTF-8 encoded text. The interpretation of binary messages is left to the application. The Gorilla WebSocket package passes the server tests in the Autobahn Test Suite using the application in the examples/autobahn subdirectory.

Features

  • Large messages are fragmented in Chrome's new WebSocket implementation
  • The application can get the type of a received data message by implementing a Codec marshal function
  • The go.net io.Reader and io.Writer operate across WebSocket frame boundaries
  • The Gorilla io.Reader and io.WriteCloser operate on a single WebSocket message
  • Package websocket implements the WebSocket protocol defined in RFC 6455
  • Subprotocols returns the subprotocols requested by the client in the Sec-Websocket-Protocol header

Project Samples

Project Activity

See All Activity >

License

BSD License

Follow Gorilla WebSocket

Gorilla WebSocket Web Site

Other Useful Business Software
Logistics Dispatch Solutions for Developers Icon
Logistics Dispatch Solutions for Developers

DNA’s JOpt has been designed to be easily integrated into any logistic- and transportation-management-software and standard ERP systems.

For staff dispatching, such as sales reps, mobile service, or workforce. For truck shipment allocation in daily transportation and logistics (scheduling, tour optimization, etc.). For waste management and District Planning. and for generally, highly constrained problem sets.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Gorilla WebSocket!

Additional Project Details

Programming Language

Go

Related Categories

Go WebSocket Servers, Go WebSocket Libraries

Registered

2021-04-13