alexwohlbruck / covalent

Internet connected lamps! For my senior capstone project💡⚛️🎓
https://alex.wohlbruck.com/project/covalent
2 stars 0 forks source link

Switch protocol from SSE to websockets #14

Closed alexwohlbruck closed 2 years ago

alexwohlbruck commented 2 years ago

The boards can only open one secure connection at a time due to limited memory, and closing the stream to send a PUT request and opening it back is too slow, and introduces a significant delay. Two-way websockets would probably fix both of these issues.

Firebase might possibly support websockets natively, otherwise I will have to write my own backend server. That may be for the better honestly, but I didn't want to have to do a custom auth implementation.