Thruway\Peer\Client::processWelcome PHP Method

processWelcome() public method

Process Welcome message
public processWelcome ( ClientSession $session, Thruway\Message\WelcomeMessage $msg )
$session Thruway\ClientSession
$msg Thruway\Message\WelcomeMessage
    public function processWelcome(ClientSession $session, WelcomeMessage $msg)
    {
        Logger::info($this, "We have been welcomed...");
        //TODO: I'm sure that there are some other things that we need to do here
        $session->setSessionId($msg->getSessionId());
        $this->emit('open', [$session, $this->transport, $msg->getDetails()]);
        $session->setState(Session::STATE_UP);
    }