Perform action on message.
public onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
$input | [type] | |
Результат | [type] |
public function onMessage(ConnectionInterface $conn, $input) { parent::onMessage($conn, $input); if (!$this->throttled) { $this->send($conn, sprintf('- %s', $input)); } }