Skip to content

support sending objects via postMessage #10

@stagas

Description

@stagas

Hey, first of all thanks for this work, it's working well for testing BroadcastChannel locally.

However according to https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/postMessage#message we should be able to send messages other than just strings. I know it's impossible to support the full structuredClone algorithm, but we could in the meantime simply use JSON.stringify/parse? Thoughts?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions