tool-db icon indicating copy to clipboard operation
tool-db copied to clipboard

Replace websockets with server sent events

Open ansarizafar opened this issue 4 years ago • 2 comments

SSE is a lightweight alternative and this package https://github.com/WebReflection/bidi-sse make it possible to use it as websocket.

ansarizafar avatar Nov 30 '21 10:11 ansarizafar

I think I see your point, and this could enable the db to be used on any transport layer like webrtc or even setup some communication tests right?

Manwe-777 avatar Nov 30 '21 12:11 Manwe-777

Websockets needs sticky session and SSE doesn't. https://braid.org/ is another option. You can also borrow few ideas from https://condensationdb.com/
https://github.com/CondensationDB/Condensation/issues/6

ansarizafar avatar Dec 01 '21 05:12 ansarizafar