Description

(>= 1.3.0) Support client/server events. If we connect before the opening of the scene, no need to call this method:

Example

canvas.Scene.new({
  name: "MyScene",
  events: ["load"], 
  ready: function(stage) {
       CE.connectServer('http://127.0.0.1', 8333);
       this.loadEvents();
       CE.io.emit("load");
  }
});

Discussion