Skip to content

Latest commit

 

History

History
 
 

chat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.