Skip to content
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

Is there a way to publish directly from PHP and not JS #11

Open
miranos opened this issue Sep 17, 2018 · 3 comments
Open

Is there a way to publish directly from PHP and not JS #11

miranos opened this issue Sep 17, 2018 · 3 comments

Comments

@miranos
Copy link

miranos commented Sep 17, 2018

Hi,

Is there a way to send event using publish from PHP directly and subscribe from JS please ?

Any fast example ?

Thank you

@alcalyn
Copy link
Member

alcalyn commented Sep 18, 2018

You want something like a PHP websocket client so that that PHP client subscribes to websocket server, publish events and act like a JS client ?

@miranos
Copy link
Author

miranos commented Sep 18, 2018

Yes exactly sir :)

But subscription will be from JS (Autobahn) and Publishing will be from PHP side.

@alcalyn
Copy link
Member

alcalyn commented Sep 18, 2018

Unfortunately, there is not a lot of WAMPv1 PHP client (https://wamp-proto.org/implementations/index.html) :)

Also, using wamp server from a php client is not a common solution, I guess maybe that's why there is more JS websocket clients than PHP clients.

There should have a way to broadcast through your topics by using them as a service and calling a method on them hat itsel broadcast a message... I could help more by knowing your use case

subscription will be from JS (Autobahn) and Publishing will be from PHP side.

This is a common case, and the solution is not to publish from a PHP client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants