public function onSubscribe(Conn $conn, $topic)
    {
        $topic->broadcast($conn->resourceId . " has joined " . $topic->getId());
    }
public function onSubscribe(Conn $conn, $topic)
    {
        $topic->broadcast($conn->resourceId . " has joined " . $topic->getId());
    }
public function onSubscribe ( Conn $ conn , $ topic ) { $ topic -> broadcast ( $ conn -> resourceId . " has joined " . $ topic -> getId ( ) ) ; }
This will receive any Subscription requests for this exact topic.

@param \Ratchet\ConnectionInterface $conn
@param $topic
@return mixed|void
This will receive any Subscription requests for this exact topic .