Description

(Obsolete) Model reference. The methods of this property are the same as scoket.io

Usage

Type

{Object}

Default

{null}

Example

/code>

var Model = io.connect('http://127.0.0.1:8333');

var canvas = CE.defines("canvas").
    ready(function() {
    canvas.Scene.call("MyScene");
 });

canvas.Scene.new({
  name: "MyScene",
  model: Model,
  events: ["load"], 
  ready: function(stage) {
    this.model.emit("start");
  },
  load: function(text) {
     console.log(text);
  }
});

Discussion