Repository navigation
Installation
- First time setting up neffos in a Go project.
- Upgrading to a newer release.
- Go 1.27 or newer, see
go.mod. - One of the three supported WebSocket adapters:
gorilla,gobwasorcoder. All three are pulled in transitively, you don't install them separately.
go get github.com/kataras/neffos@latestOr pin in your go.mod:
module your_project_name
go 1.27
require (
github.com/kataras/neffos v0.0.25
)
If you're starting a new project, prefer
@latest. Pin a specific version once you ship to production.
Verify the install with a one-liner:
package main
import (
"fmt"
_ "github.com/kataras/neffos"
)
func main() { fmt.Println("neffos installed") }Network errors during go get usually mean GOPROXY is misconfigured. Reset to the default:
go env -w GOPROXY=https://proxy.golang.org,directIf you're behind a corporate proxy, replace https://proxy.golang.org with your internal Go module proxy.
go get -u github.com/kataras/neffos@latestPrefer tagged releases for production. The main branch is usually stable but may include unreleased changes, so use it only when you need a specific unreleased fix.
For the JavaScript/TypeScript client, see neffos.js:
npm install neffos.jsOn Node.js older than 22, also install the optional ws dependency, since those versions have no built-in WebSocket global:
npm install wsOr load the global build straight from a CDN, no npm step at all:
<script src="https://cdn.jsdelivr.net/npm/neffos.js@0.3/dist/neffos.global.min.js"></script>Types are bundled, no separate @types/* install required.
neffos v0.0.25 adds close codes, a heartbeat, a message size limit, Conn.Send, Server.Shutdown, a coder backend and a redis stack exchange on go-redis. It requires Go 1.27 and uses its generic methods: msg.As[T](), c.Conn.Value[T](key), c.AskObject[Reply](...), a typed Struct[T] handler, and encoding/json/v2 for message bodies. See What's new in v0.0.25 for the full list, the old-to-new API table, snippets of the new API and an old-to-new example path table.
- Getting Started, the first runnable example
- Examples, catalog of complete example apps
- Architecture, what's under the hood once neffos is in
Home | About | Project | Getting Started | Technical Docs | Copyright © 2019-2026 Gerasimos Maropoulos. Documentation terms of use.
Getting started
Concepts
Messaging
Production
Scale out