PHP Interface Sulu\Component\Websocket\MessageDispatcher\MessageHandlerInterface

Show file Open project: sulu/sulu

Public Methods

Method Description
handle ( Ratchet\ConnectionInterface $conn, array $message, MessageHandlerContext $context ) Processes given message.
onClose ( Ratchet\ConnectionInterface $conn, MessageHandlerContext $context ) Connection lost.

Method Details

handle() public method

Processes given message.
public handle ( Ratchet\ConnectionInterface $conn, array $message, MessageHandlerContext $context )
$conn Ratchet\ConnectionInterface
$message array
$context MessageHandlerContext

onClose() public method

Connection lost.
public onClose ( Ratchet\ConnectionInterface $conn, MessageHandlerContext $context )
$conn Ratchet\ConnectionInterface
$context MessageHandlerContext