Closed momopaper closed 6 years ago
What version of symfony are you using?
symfony 2.8
If you're subscribing to a topic that you're also publishing to, you'll need to set the exclude_me
option to false
.
session.publish('com.myapp.hello_pub_sub', ['Hello, world222!'], [],['exclude_me' => false]);
im trying to publish message to connecting client from server but client was unable to receive any msg from server, i try to use xdebug to debug the code, somehow ClientManager's publish function cant find wamp_kernel in the container and thus skip $session.publish(...) code, i not sure if i missed out any configuration
this is how i publish my msg from server controller
this is my browser code
my config: