-
Notifications
You must be signed in to change notification settings - Fork 437
Description
Hello:
The WampConnectionFactory requires the dsn to be wamp or ws, with establishConnection using ws as the uri.
https://github.com/php-enqueue/wamp/blob/master/WampConnectionFactory.php
I'd love to make it easy to support wss instead of ws. The simplest way would be to simply make establishConnection and config protected instead of private so I can extend and overwrite it.
Alternatively, we could add a wss option in config to build the uri optionally with wss vs ws.
The issue
Edit to communicate why I want this:
I'm using a nexus WAMP router with an autobahn-hs frontend wamp client trying to talk to the enqueue wamp client. Because its via the web browser, I need HTTPS/WSS, which causes the Enqueue connection to fail at Thruway\Transport\PawlTransportProvider with "Trying to send an HTTP request tot an HTTPS server". Changing to wss resolves this.