custom_ws_gobwas

command
v0.0.0-...-90bf800 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 22 Imported by: 0

README

Example demonstrates a simple chat with custom WebSocket transport based on https://github.com/gobwas/ws library. You can expect a much less memory usage when handling lots of connections compared to default Gorilla Websocket based transport (about 3x reduction).

To start example run the following command from example directory:

go run *.go

Then go to http://localhost:8000 to see it in action.

Note that since this example uses epoll on Linux and kqueue on BSD-based systems you should be very careful with relying on this code for your production application. Think wise and carefully test.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL