websocket
Minimal and idiomatic WebSocket library for Go (by coder)
websocket
A fast, well-tested and widely used WebSocket implementation for Go. (by gorilla)
websocket | websocket | |
---|---|---|
18 | 47 | |
4,568 | 18,557 | |
1.7% | - | |
5.7 | 5.3 | |
18 days ago | over 2 years ago | |
Go | Go | |
ISC License | BSD 2-clause "Simplified" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
websocket
Posts with mentions or reviews of websocket.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-08-26.
-
aria - Event Driven websocket framework
Aria is a lightweight, event-driven WebSocket framework for Go. It is inspired by olahol/melody and built on top of coder/websocket.
-
Lies we tell ourselves to keep using Golang
As a regular Go user, I agree with this take. Though the tools exist, error wrapping and checking (with errors.Is and so on) is actually pretty rare in my experience.
Positive example of good and appropriate usage here: https://github.com/coder/websocket/blob/master/internal/exam...
-
Building Simple Real-Time System Monitor using Go, HTMX, and Web Socket
Websocket
-
Possible frameworks/languages for a web/mobile application
In my experience Go has been relatively approachable for people that are good at PHP. It has a great standard library and a pretty solid ecosystem, though frameworks aren’t as popular in Go. There are some well regarded libraries for things like WebRTC via https://github.com/pion/webrtc WebSicket via https://github.com/nhooyr/websocket
-
Websocket memory usage
Also take a look at https://github.com/nhooyr/websocket - which is a good ws library, but I don't have anything specific about its memory usage per connection. But from what I see it will be somewhat similar to x/net/websocket.
- I don't understand these lines of code in Gorilla websocket example
- Websockets with golang
-
Portal - a modern file transfer utility 🌌✨
nhooyr/websocket, shollz/pake, charmbracelet/bubbles, charmbracelet/bubbletea, charmbracelet/lipgloss, muesli/reflow, klauspost/pgzip and many, many more.
- Is there an alternative to gorilla websocket?
-
Gorilla/websocket or Melody?
link: https://github.com/nhooyr/websocket
websocket
Posts with mentions or reviews of websocket.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-03-02.
-
Using Redis to build a Distributed Chat App in Go & React.js
In my Golang server, I've used Gorilla's websocket library for handling websocket server. It's a very popular and battle tested library and easy to use with great documentation.
-
Creating a WebSocket Server in Go with Gorilla
WebSockets are a powerful way to enable real-time communication between a server and a client. They keep a connection open, allowing messages to be sent back and forth efficiently. In this blog post, we'll build a WebSocket server using Go and the popular Gorilla WebSocket library.
-
Creating a Bot for Bluesky Social
We will also use the Gorilla Websocket package, download the package with:
-
Websocket memory usage
What I can say is that if you will use Gorilla Websocket (https://github.com/gorilla/websocket) (it's archived now unfortunately, but still super robust) - then you can go to sth like 15-20kb per connection - see https://github.com/FZambia/go_websocket_memory - to achieve this you need to reduce read buffer size, reuse write buffers, use goroutine after hijacking connection (following chat example in Gorilla WebSocket repo).
-
Is there an alternative to gorilla websocket?
No Bugs? https://github.com/gorilla/websocket/issues Even if that were true at the time of stoping development, "No bugs" is something that can never be said for any software. I really wish this community stopped recomending to use abandoned libraries if only for the potential Security issues. A not maintained Library is a very lucrative target for vulnerability hunting.
- As gorilla websocket has been archived which library can we use?
-
gorilla fork
The Gorilla WebSocket License says:
-
WebSockets in Go: A hijackers' perspective
We'll be using WebSocket library: "github.com/gorilla/websocket" ❣️
-
How to install gorilla websocket in go 1.20?
package github.com/gorilla/websocket is not a main package
-
Polygon: Json Database System designed to run on small servers (as low as 16MB) and still be fast and flexible.
As for Websockets, (https://github.com/gorilla/websocket) it uses ws.NextReader() to handle heavy loads of connections.
What are some alternatives?
When comparing websocket and websocket you can also consider the following projects:
nbio - Pure Go 1000k+ connections solution, support tls/http1.x/websocket and basically compatible with net/http, with high-performance and low memory cost, non-blocking, event-driven, easy-to-use.
Fiber - ⚡️ Express inspired web framework written in Go
ws - Tiny WebSocket library for Go.
go-socket.io - socket.io library for golang, a realtime application framework.
go-quilljs-delta
chi - lightweight, idiomatic and composable router for building Go HTTP services