Socket.IO Server
A simple bootstrap project for creating node.js servers with socket.io
Setup
In the following a simple bootstrap script to setup your server. For a detailed example follow the content in example.js
./index.js
let app = port: 8303 // The port the server shoud listen to commands: TestCommand ; app;
./src/Commands/TestCommand.js
thisname = 'test'; console
If you take a look at the base command you can see that you have access to the following objects:
{ thisapp = app; // The app instance it self thisclient = client; // A personalized instance of the client thisname = null; // The name of the command which is required to execute the command this; }