chat

command
v0.0.0-...-22dcbff Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2015 License: MIT Imports: 12 Imported by: 0

README

Browser-to-browser chat example

This example uses https://github.com/nsf/bin2go to embed assets. To make sure it's installed, run

go get github.com/nsf/bin2go

and put the resulting bin2go in PATH.

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