Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When performed properly, the autorun.brs file will automatically establish a Node.js environment on the player, as well as the WebSocket server and WebSocket client. The WebSocket client then sends a message to the WebSocket server on the machine, and the server prints a message on the display.

...

npm Example

...

The following example requires knowledge of npm and creating plugins for BrightSign players

...

:

  1. Download the WebSocketSample.zip file.

  2. Using npm, run "npm install" in the directory.

  3. Run "node node_server.js" for the WebSocket server.

  4. Open the index.html file in a browser to establish a connection.

  5. Click on the "Click me" button to send a message back to the WebSocket server.

...