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
MicroStation by Bentley Systems is the trusted computer-aided design (CAD) software built specifically for infrastructure design. Icon
MicroStation by Bentley Systems is the trusted computer-aided design (CAD) software built specifically for infrastructure design.

Microstation enables architects, engineers, and designers to create precise 2D and 3D drawings that bring complex projects to life.

MicroStation is the only computer-aided design software for infrastructure design, helping architects and engineers like you bring their vision to life, present their designs to their clients, and deliver their projects to the community.
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