Skip to content

WAMP router support for wss #1401

@bradfordcondon

Description

@bradfordcondon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions