Closed Moniiiiii closed 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?
I've tried to override onMessage method as follows:
But user is not able to subscribe.. is that the correct way to prevent client publishing to others?