NOTE: The master branch represents ongoing work and may have the client in a currently unstable state. Please check the releases to get the most recent stable version.
This is the Room.js client. Please see the Room.js Server project for details about running a server.
There are a few commands that are handled client-side that never get sent to the server. Below is a list of them with descriptions:
.clear
: Clears the scrollback buffer of the client..connect
: Connects to the server if there is not already a connection..disconnect
: Disconnects from the server if there is a connection..new tab
: Opens a new tab and connects to the server..close tab
: Closes the current tab.
In addition to the above client-side commands, there are also a few client-side configuration options that you can set. Below is a list of them with descriptions and possible values:
.echo (on|off)
: (default: off) Turns on / off echo mode. When on, all commands sent to server will be repeasted as lines in the client..space (on|off)
: (default: off) Turns on / off output spacing. When on, all output blocks from the server will be separated by an empty line.
To build the client you need a few things set up first.
- nodejs >= 6.0.0
- yarn
Install the project dependencies using yarn:
yarn install
To build the distributable index.html with all it's required files:
yarn build [serverUrl]
Where serverUrl is an optional string of which server the client will connect to. (Default: http://localhost:8888)
First, thanks for contributing! If you're going to contribute changes please make sure of the following before submitting a pull-request:
- Make sure the code is lint free (
yarn lint
) - Make sure the tests pass (
yarn test
) - Build and check in a new dist folder with your changes (
yarn build
)