chat

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 14 Imported by: 0

README

Browser-to-browser chat example

The assets are embedded with //go:embed, so nothing but the Go toolchain is needed.

To run the example:

./run

or, to select another port:

./run -port=8888

Then open two browser windows to http://localhost:8000/ , change your name from J. Doe to something more distinct, and type messages. See how they are transmitted to the other browser window.

See the browser's Javascript console for a debug log of incoming and outgoing messages.

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
⌂ 换网址