Local development server for mudb. Makes it easy to start mudb client/server pairs using some opinionated conventions.
npm i mudo
To run mudo, execute the following command:
mudo --client myclient.js --server myserver.js --open
Where myclient.js and myserver.js are implemented as follows:
myclient.js
module.exports = function (muClient) {
// client implementation ...
muClient.start();
}
myserver.js
module.exports = function (muServer) {
// server implementation ...
muServer.start();
}
By default mudo uses mulocal-socket to connect the client and server instances locally. Multiplayer games over muweb-socket can be run by passing the --socket websocket option to mudo.
clientPath to the client script. Defaults to client.js
serverPath to the server script. Defaults to server.js
socketSocket type to use. Possible options:
local: uses mulocal-socket (default)websocket: uses muweb-socketopenOpens a browser window with the socket server contents listed
TODO
Copyright (c) 2017 Mikola Lysenko, Shenzhen Dianmao Technology Company Limited