Cli\WS::__construct PHP Method

__construct() public method

Instantiate object
public __construct ( $addr, $ctx = NULL, $wait = 60 ) : object
$addr string
$ctx resource
$wait int
return object
    function __construct($addr, $ctx = NULL, $wait = 60)
    {
        $this->addr = $addr;
        $this->ctx = $ctx ?: stream_context_create();
        $this->wait = $wait;
        $this->events = [];
    }