__construct() __construct(string $host, integer $port, boolean $useSSL = false) Client constructor. Parameters string $host integer $port boolean $useSSL
get() get(string $uri, callable $callback) : boolean|void Parameters string $uri callable $callback Returns boolean|void
post() post(string $uri, callable $callback, mixed $data) : void|boolean Parameters string $uri callable $callback mixed $data Returns void|boolean
openStream() openStream(string $uri, callable $callback) : integer|boolean|void Parameters string $uri callable $callback Returns integer|boolean|void — return the stream id when success
push() push(integer $streamID, mixed $data) : boolean push data to server Parameters integer $streamID mixed $data Returns boolean