-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onPush() function not getting hit after push from controller using ZMQ #159
Comments
@Prophet777 Please have a look. I am stuck for 2 days now. |
Why do you segregate these services? - @app.real_time.subscribe
- @app.real_time.push subscribe and push are part of the same class, I think the problem is here. |
@Prophet777 Sorry for late response. Made a single class for both Subscribe and Push. Created following configuration but same problem.Subscribing is fine but config.yml
pubsub/routing.yml
services.yml
SubscribeAndPush Class onSubscribe() : SubscribeAndPush.php
SubscribeAndPush Class onPush() : SubscribeAndPush.php
Controller
|
and after hitting the controller, on the |
There is another thing. According to the docs- Pusher eventWhen pusher send message or fail to send it, we dispatch event to allow you to plug your own logic.
Will give an But on the I added |
Have you try with websocket pusher? (He use directly onPublish instead of onPush take care) Maybe windows is the problem with zmq |
Can you tell me which is recommended? I thought websocket pusher is not recommended due to latency. Can you send me the link of proper zmq library. I have downloaded from This Link. thanks @Prophet777 |
Is there any way that this bundle support Wamp v2 ? If not can anyone redirect me to anything where I can use angular for autobahn js with Wamp v1 ? AngularWamp is only for Wamp v2. @Prophet777 Thanks in advance. And sorry for asking too many questions. |
I actually have the same probleme from the original poster. I'm on Win10, using Wamp server, as the poster, so i guess ZeroMQ have issue with windows ? |
Config.yml
pubsub/routing.yml
services.yml
The following function is getting hit when client subscribes on this topic. I can see the text in the console.
Subscribe Class onSubscribe() : Subscribe.php
But when pushed via zmq from controller the
onPush()
function never got hit. I have already implementedTopicInterdace
andPushableTopicInterface
in Push.php.Push Class onPush() : Push.php
Please can any one tell me where did I do wrong. Thanks in advance. Here is the controller
The text was updated successfully, but these errors were encountered: