Exemple #1
0
 public function __construct(Event $event)
 {
     $this->event = $event;
     $protocol = new wampProtocol($event);
     $event->on('onOpen', array($protocol, 'welcomeProtocol', 1));
     $event->on('onData', array($protocol, 'switchboard', 2));
 }
 public function __construct(Event $event)
 {
     $this->spectrometer = new Channels($this);
     $this->rpc = new Procedures($this);
     $event->on('ghostDataCleanUp', array($this, 'route_data_cleanup', 1));
     $this->event = $event;
     $this->sessionConnections = array();
     $this->sessionIDs = array();
 }