Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open-pwa event protocol #39

Open
frank-dspeed opened this issue Aug 25, 2021 · 0 comments
Open

open-pwa event protocol #39

frank-dspeed opened this issue Aug 25, 2021 · 0 comments

Comments

@frank-dspeed
Copy link
Member

event: userconnect
data: {"username": "bobby", "time": "02:33:48"}

data: Here's a system message of some kind that will get used
data: to accomplish some task.

event: usermessage
data: {"username": "bobby", "time": "02:34:11", "text": "Hi everyone."}

each seperated by \n new line

data without event gets recived via onmessage and the rest via addEventListner.

the data is always a Stream of UTF-8 Char Data.

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

No branches or pull requests

1 participant