This program communicates with the serialport using the socket.io.
This program communicates with the serialport using the socket.io. It is possible to communicate with one serialport in one socket.io name. Therefore, use multiple socket.io in browser, it is possible to communicate with multiple serialport. Browser's program is refer to jquery.sp-connector.js.
npm install sp-socket
Please refer to serialport install.
var sp-socket = require('sp-socket'); var sp = new sp-socket(listen_port, socket_name, max_socket, socket_options);
socket.io's listen port.
socket_name0 ... socket_nameX
Please refer to socket.io. Also this program's 'log level' equal socket.io's 'log level'.