WebSocketError
+ Inheritance diagram for WebSocketError:

Description

A WebSocket error.

Error codes less than 1000 are not used by the protocol or exposed to peers, but may be used internally per implementation.

See also
https://tools.ietf.org/html/rfc6455#section-7.4

Protected Properties

mixed $extra
 
Frame null $frame
 

Public Methods

 __construct (int $code, string $message='', Frame $frame=null, Throwable $previous=null)
 
mixed getExtra ()
 
Frame null getFrame ()
 
$this setExtra ($extra)
 

Methods

◆ getExtra()

mixed getExtra ( )
Returns
mixed

◆ getFrame()

Frame null getFrame ( )
Returns
Frame|null

◆ setExtra()

$this setExtra (   $extra)
Parameters
mixed$extra
Returns
$this