Askedio\LaravelRatchet\PusherServer::onOpen PHP Method

onOpen() public method

When a new connection is opened it will be passed to this method.
public onOpen ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface The socket/connection that just connected to your application
    public function onOpen(ConnectionInterface $conn)
    {
        //
    }