voryx / Thruway

PHP Client and Router Library for Autobahn and WAMP (Web Application Messaging Protocol) for Real-Time Application Messaging
MIT License
674 stars 117 forks source link

prevent client publishing at all! #289

Closed Moniiiiii closed 6 years ago

Moniiiiii commented 6 years ago

I've tried to override onMessage method as follows:

  public function onMessage(ConnectionInterface $from, $msg)
    {
        if ($msg instanceof HelloMessage) {
            parent::onMessage($from, $msg);
        }
    }

But user is not able to subscribe.. is that the correct way to prevent client publishing to others?