Skip to content

Add the ability to send/receive events via the websocket protocol #156

Closed
@lance

Description

@lance

Related: #94

Based on a discussion in Slack.

Lance Ball(opens in new tab) 4 hours ago
Scott Nichols re: how you want to use the SDK. Do you want to be able to send events directly from the browser?

Lance Ball(opens in new tab) 4 hours ago
Do you see this as a potentially common use case?

Scott Nichols(opens in new tab) 4 hours ago
well in the case of a browser, I don’t want it to send http post anything

Scott Nichols(opens in new tab) 4 hours ago
likely I would wire it up to a websocket

Lance Ball(opens in new tab) 4 hours ago
which would mean un/marshalling the event yourself

Scott Nichols(opens in new tab) 4 hours ago
but I see value in using this as a backend in node too

Lance Ball(opens in new tab) 4 hours ago
for sure

Scott Nichols(opens in new tab) 4 hours ago
well, not really if I could write a lib that you can send events to the active websocket

Scott Nichols(opens in new tab) 4 hours ago
that component would handle event-to-ws conversion

Scott Nichols(opens in new tab) 4 hours ago
if that was bi-directional, how awesome would that be… (edited)

Lance Ball(opens in new tab) 4 hours ago
sure - I'm just saying there is nothing in the SDK that would support send/receive over websockets today

Lance Ball(opens in new tab) 4 hours ago
but that's a great feature to add 😉

Scott Nichols(opens in new tab) 4 hours ago
I would be happy to help hack on that

Metadata

Metadata

Assignees

No one assigned

    Labels

    module/browserModule capabilities in a browser environmenttype/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions