src/Socket/Router.php
protected function setSession($key, $value = null) {
        if (isset($value))
            $this->connection->session[$key] = $value;
        else unset($this->connection->session[$key]);
    }
protected function setSession($key, $value = null) {
        if (isset($value))
            $this->connection->session[$key] = $value;
        else unset($this->connection->session[$key]);
    }
protected function setSession ( $ key , $ value = null ) { if ( isset ( $ value ) ) $ this -> connection -> session [ $ key ] = $ value ; else unset ( $ this -> connection -> session [ $ key ] ) ; }
设置当前客户端连接的Session

@param $key
@param null $value
设置当前客户端连接的Session