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!