VCityTeam / UD_ReAgent_ABM

Agent Based Simulation framework for Urban Data Services and Vizualisation
1 stars 3 forks source link

Cannot connect to GAMA server with Ubuntu using Socket #15

Closed agrignard closed 2 years ago

agrignard commented 2 years ago

After installing this version GAMA_1.8.2-RC2_Linux_with_JDK.deb

Run GAMA in headless mode (SERVER)

The server is 'running'

Run UD-Viz-GCCV (Client)

message recieved should be written every second

in console.log("message recieved"); is never called in src/bootstrap.js

  let executor = setInterval(() => {
    if (queue.length > 0 && request === "") {
      request = queue.shift();
      request.exp_id = exp_id;
      request.socket_id = socket_id;
      wSocket.send(JSON.stringify(request));
      wSocket.onmessage = function (event) {
        console.log("message recieved");
        let msg = event.data;
        if (event.data instanceof Blob) { } else {
          if (request.callback) {
            request.callback(msg);
          } else {
            request = "";
          }
        }
      }
    }

  }, executor_speed);
agrignard commented 2 years ago

Close my bad a path was written in hard