Example of outgoing payload

Created on 11 August 2020, over 4 years ago
Updated 5 October 2023, over 1 year ago

Problem/Motivation

I'd like to access a Drupal 8 webhook in javascript via websockets. Basically, I want to be able to connect via websocket and get updated every time a comment is created, edited or deleted.

However the only URLs allowed in this module are http:// or https://, and websockets require ws:// or ws:// and that does not seem to work with websocket clients.

I could be completely confused about whether this module allows for that, but I can't find any examples or documentation anywhere for the module, so I'm not sure how to actually use it to provide a webhook that can be accessed in an external JS app.

Thanks for any help!

Steps to reproduce

Save an outgoing websocket with http:// path
Try to access - websocket clients will fail using wither http:// or ws:// for the same path, visiting in browser says "A client error happened"

Proposed resolution

Provide example or documentation for how to access an outgoing payload via websockets.

Remaining tasks

- Example or documentation

User interface changes

None, except if UI should allow ws:// protocol for paths?

API changes

Not known.

Data model changes

Likely none.

---

Many thanks if you can point me in the right direction!

💬 Support request
Status

Closed: won't fix

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe

    I don't think this is possible without a websockets daemon running on your server.
    Also the other way around, your websockets client would connect to the server to receive updates.
    IMHO this is out of scope for this module, sorry.

Production build 0.71.5 2024