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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
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