Sha256: b2c8acef00059f37ef6f8054dd7adc8d0ffd9f8f5a407b8f2c271d76e27e67ce
Contents?: true
Size: 826 Bytes
Versions: 25
Compression:
Stored size: 826 Bytes
Contents
/////////////////////////// connection ws // // function connect(address) { // // websocket = new WebSocket(address); // // websocket.onopen = function (event) { // atomeJsToRuby("puts 'Connected to WebSocket'") // // }; // // websocket.onmessage = function (event) { // // atomeJsToRuby("puts 'object ruby callback : " + event.data + "'") // }; // // websocket.onclose = function (event) { // atomeJsToRuby("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); // atomeJsToRuby("A.receptor("+msg+")") // }
Version data entries
25 entries across 25 versions & 1 rubygems