Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Allow to customize state update action types #6

Open
haggen opened this issue Feb 7, 2022 · 2 comments
Open

Allow to customize state update action types #6

haggen opened this issue Feb 7, 2022 · 2 comments

Comments

@haggen
Copy link
Member

haggen commented Feb 7, 2022

Perhaps we could accept a config querystring carrying a base64 encoded JSON of some config options.

base64(
  JSON.stringify({
    stateUpdateReq: "STATE_UPDATE_REQ",
    stateUpdateReply: "STATE_UPDATE_REPLY",
  })
);
wws://hummingbird.crz.li/my/channel?config=eyJzdGF0ZVVwZGF0ZVJlcSI6IlNUQVRFX1VQREFURV9SRVEiLCJzdGF0ZVVwZGF0ZVJlcGx5IjoiU1RBVEVfVVBEQVRFX1JFUExZIn0=
@haggen
Copy link
Member Author

haggen commented Feb 7, 2022

One thing we should consider is that in the future we might need to dispatch "client disconnect" messages to warn of broken connections. This might also need some configuration and could use of something more robust.

@haggen
Copy link
Member Author

haggen commented Feb 25, 2022

I was thinking of a different approach. Provide a Hummingbird library that wraps WebSocket, encode/decode messages in JSON and allow you to replace action types.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant