Sha256: 187e830eaa0e56fa9770944e1c82d8374596c5cf5f4b14f7d8a2e43f229024c6
Contents?: true
Size: 818 Bytes
Versions: 6
Compression:
Stored size: 818 Bytes
Contents
/////////////////////////// connection ws // // function connect(address) { // // websocket = new WebSocket(address); // // websocket.onopen = function (event) { // rubyVMCallback("puts 'Connected to WebSocket'") // // }; // // websocket.onmessage = function (event) { // // rubyVMCallback("puts 'object ruby callback : " + event.data + "'") // }; // // websocket.onclose = function (event) { // rubyVMCallback("puts 'WebSocket closed'") // }; // // websocket.onerror = function (event) { // // to prevent error disturbing the console // event.preventDefault(); // console.log('connection lost!') // }; // // } function controller_message(msg) { // let json_msgs = JSON.parse(msg); rubyVMCallback("A.receptor("+msg+")") }
Version data entries
6 entries across 6 versions & 1 rubygems