HeladoDeBrownie / Nexus

creative sandbox game in early development
MIT License
3 stars 1 forks source link

remove concept of origin prefix from protocol #78

Open HeladoDeBrownie opened 3 years ago

HeladoDeBrownie commented 3 years ago

it was a good idea at first but it turns out it's largely superfluous

HeladoDeBrownie commented 3 years ago

i should say there's actually a caveat here. some messages don't make sense to prefix, such as HELLO and WELCOME, but everything that has to do with syncing of scene state makes sense to have a prefix iff it's from the direction of the host. might be able to rework it so these constraints are preserved in the protocol (see also #79)