Example #1
0
 public function parseMessages()
 {
     $this->conn->on('message', function ($msg) {
         $this->verboseLog("MESSAGE RECEIVED: {$msg}", 'info');
         $msg = json_decode($msg, true);
         $type = $msg['type'];
         unset($msg['type']);
         $comKey = $msg['comKey'];
         unset($msg['type']);
         $this->routeInputEvents($type, $msg, $comKey);
     });
 }