...
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
...
:
Download the WebSocketSample.zip file.
Using npm, run "
npm install"
in the directory.Run "
node node_server.js
" for the WebSocket server.Open the index.html file in a browser to establish a connection.
Click on the "Click me" button to send a message back to the WebSocket server.
...