Thruway\Peer\Client::processOther PHP Method

processOther() public method

Handle process other Message
public processOther ( ClientSession $session, Thruway\Message\Message $msg )
$session Thruway\ClientSession
$msg Thruway\Message\Message
    public function processOther(ClientSession $session, Message $msg)
    {
        /* @var $role AbstractRole */
        foreach ($this->roles as $role) {
            if ($role->handlesMessage($msg)) {
                $role->onMessage($session, $msg);
                break;
            }
        }
    }