shtylman edited this page Sep 11, 2012 · 3 revisions
Clone this wiki locally

Spaceport is a distributed service registry.


service(name, options)

Create a new service. The service is not yet active or broadcasting. This returns an object which allows you to manage the lifetime of service broadcasts using the methods start and stop

  • name

    the name of the service

  • options: object to configure how the service will be seen by the network

    port: port the service will accept connections on
    ip: ip address the service has been bound to



start broadcasting that the service is available for connections


the service is no longer accepting new connections