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

Version Path
atome-0.5.6.7.8 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.7.7 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.7.6 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.7.5 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.7.4 vendor/assets/src/js/atome/atome_helpers/communication.js
atome-0.5.6.7.3 vendor/assets/src/js/atome/atome_helpers/communication.js