Skip to content

websocket replace root element without id #185

@maxsupermanhd

Description

@maxsupermanhd

In ws extension everything is built on top of oobSwap making it impossible for incoming messages to swap innerHTML of the connecting element.

I want to run 2 (almost) identical websockets and it would cause ids to collide, is it possible to somehow not rely on the ids but swap the innerHTML of the element that is specified to be connected?

Example:

<div ws-connect="url1">
  <div>Content to replace</div>
</div>
<div ws-connect="url2">
  <div>Different content to replace</div>
</div>

Any help is appreciated!

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