function subscribeToP300Cmds(callbackExecCmd) {
    // Execute doP300command in player
    socket.on("doP300command", (doP300command) => callbackExecCmd(doP300command));

    socket.on("error", console.error.bind(console));
    socket.on("message", console.log.bind(console));
}
//******** socket.io to listen to commands from node apps *****
socket.io to listen to commands from node apps
socket . io to listen to commands from node apps
function subscribeToP300Cmds(callbackExecCmd) {
    socket.on("doP300command", (doP300command) => callbackExecCmd(doP300command));
    socket.on("error", console.error.bind(console));
    socket.on("message", console.log.bind(console));
}
function subscribeToP300Cmds ( callbackExecCmd ) { socket . on ( "doP300command" , ( doP300command ) => callbackExecCmd ( doP300command ) ) ; socket . on ( "error" , console . error . bind ( console ) ) ; socket . on ( "message" , console . log . bind ( console ) ) ; }
socket.io to listen to commands from node apps
socket . io to listen to commands from node apps
// Execute doP300command in player