Askedio\LaravelRatchet\RatchetServerExample::onMessage PHP Method

onMessage() public method

public onMessage ( Ratchet\ConnectionInterface $conn, $input )
$conn Ratchet\ConnectionInterface
    public function onMessage(ConnectionInterface $conn, $input)
    {
        parent::onMessage($conn, $input);
        if (!$this->throttled) {
            $this->send($conn, sprintf('- %s', $input));
        }
    }
RatchetServerExample