Example #1
0
 public function isInstantiated()
 {
     // Fetch references to required modules
     $this->stream = ModuleManagement::getModuleByName("Stream");
     $this->welcome = ModuleManagement::getModuleByName("Welcome");
     // Register an event to periodically check the encoder state
     EventHandling::registerForEvent("connectionLoopEndEvent", $this, "receiveConnectionLoopEnd");
     return true;
 }
Example #2
0
 public function isInstantiated()
 {
     // Fetch references to required modules
     $this->metadata = ModuleManagement::getModuleByName("Metadata");
     $this->timer = ModuleManagement::getModuleByName("Timer");
     $this->welcome = ModuleManagement::getModuleByName("Welcome");
     // Fetch a null metadata payload
     $this->meta = $this->metadata->getMetadata(null);
     // // Schedule a broadcast to all clients
     // $this->scheduleBroadcast();
     EventHandling::registerForEvent("connectionLoopEndEvent", $this, "broadcast");
     return true;
 }