PHP Class Therac\WebSocket\Base

Inheritance: implements Ratchet\MessageComponentInterface, use trait Handle, use trait Emit
Show file Open project: Sean-Der/Therac

Protected Properties

Property Type Description
$Therac
$clients

Public Methods

Method Description
__construct ( $Therac )
onClose ( Ratchet\ConnectionInterface $conn )
onError ( Ratchet\ConnectionInterface $conn, Exception $e )
onMessage ( Ratchet\ConnectionInterface $from, $msg )
onOpen ( Ratchet\ConnectionInterface $conn )

Method Details

__construct() public method

public __construct ( $Therac )

onClose() public method

public onClose ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface

onError() public method

public onError ( Ratchet\ConnectionInterface $conn, Exception $e )
$conn Ratchet\ConnectionInterface
$e Exception

onMessage() public method

public onMessage ( Ratchet\ConnectionInterface $from, $msg )
$from Ratchet\ConnectionInterface

onOpen() public method

public onOpen ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface

Property Details

$Therac protected property

protected $Therac

$clients protected property

protected $clients