Sha256: cb244db2c5bd77b45efcd27f18e852525804e66fe6289b46c4ac898fac38d7ce

Contents?: true

Size: 830 Bytes

Versions: 4

Compression:

Stored size: 830 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

4 entries across 4 versions & 1 rubygems

Version Path
atome-0.5.6.8.7 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.8.6 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.8.5 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.8.3 vendor/assets/src/js/atome/atome_helpers/communication.js