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

For GO Backend: Things that will need to change #5

Closed
Minnowo opened this issue Jan 16, 2024 · 1 comment
Closed

For GO Backend: Things that will need to change #5

Minnowo opened this issue Jan 16, 2024 · 1 comment

Comments

@Minnowo
Copy link
Member

Minnowo commented Jan 16, 2024

I am going to try documenting what is changing here before I forget.

For the most part I have kept it the same, but there are a few things that you will need to update, sorry.

Stuff that has def changed:

  • All messages are now in the format:
{
messageType: <int>,
payload:     <json>
}

You should only need to change stuff like, instead of event.client_id -> event.payload.client_id

I think this is all that has changed, so hopefully I am correct. Will start testing with the real frontend soon.

Also, Go should be able to handle certs for doing wss if we want to do that, but it probably doesn't matter.

@Minnowo Minnowo pinned this issue Jan 17, 2024
@Minnowo
Copy link
Member Author

Minnowo commented Jan 17, 2024

Also the room codes are now 64 bit integers. They looks something like 9187201950435737471, this can be changed. We can probably make this 16 bits instead and use hex on the frontend or something.

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

No branches or pull requests

1 participant