basic

command
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 9 Imported by: 0

README

Basic Example

Requirements

How to run

Open a terminal window instance and execute:

$ cd ./browser
# build the browser-side client: ./browser/bundle.js which ./browser/index.html imports.
$ npm install && npm run-script build 
$ cd ../ # go back to ./basic
$ go run main.go server # start the neffos websocket server.

Open some web browser windows and navigate to http://localhost:8080, each window will ask for a username and a room to join, each window(client connection) and server get notified for namespace connected/disconnected, room joined/left and chat events.

To start the go client side just open a new terminal window and execute:

$ go run main.go client

It will ask you for username and a room to join as well, it acts exactly the same as the ./browser/app.js browser-side application.

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