protected function processError(AbstractSession $session, ErrorMessage $msg)
{
switch ($msg->getErrorMsgCode()) {
case Message::MSG_SUBSCRIBE:
$this->processSubscribeError($session, $msg);
break;
case Message::MSG_UNSUBSCRIBE:
Logger::error($this, "Unhandled unsubscribe error");
break;
default:
Logger::error($this, "Unhandled error");
}
}