interface.server.websocket

0.0.2 • Public • Published

Interface.Server.WebSocket

This module is used to send / receive websocket messages inside Interface.Server.

To use it, make sure you have websocket declared as a transport inside the Interface.Server config file and have the module installed. You also need to configure a port for the WebSocket server to run on. Here's an example transport section that will start a WebSocketServer:

transports: {
  websocket: {
    webServerPort: 9080
  }
}

There is a test file in the tests directory of main interface.server repo that you can load in your browser to test this.

Package Sidebar

Install

npm i interface.server.websocket

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • thecharlie