Socket
Book a DemoInstallSign in
Socket

mudo

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mudo

Development framework for prototyping mudb applications

latest
Source
npmnpm
Version
0.1.8
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

mudo

Local development server for mudb. Makes it easy to start mudb client/server pairs using some opinionated conventions.

install

npm i mudo

example usage

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.

cli

options

client

Path to the client script. Defaults to client.js

server

Path to the server script. Defaults to server.js

socket

Socket type to use. Possible options:

  • local: uses mulocal-socket (default)
  • websocket: uses muweb-socket

open

Opens a browser window with the socket server contents listed

api

TODO

credits

Copyright (c) 2017 Mikola Lysenko, Shenzhen Dianmao Technology Company Limited

Keywords

mudb

FAQs

Package last updated on 02 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts