chat_server

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Chat server example

This example shows how to build a basic chat server with Neoroute.

You can connect using the following client transporters:

  • HTTP: Send messages to the server.
  • WebSocket: Send messages and receive message events from the server.

It's really simple and only persists the messages in memory.

Running the example

Literally just what you're used to:

go run .

Debugging the server

Neodebug is integrated into this project as well. It allows you to open a TUI interface, sort of like an API client, that lets you check functionality of the server.

To start it for HTTP use:

go run . --debug-http

For WebSocket use:

go run . --debug-ws

Testing

This server also has some basic tests in main_test.go. Run them like this:

go 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