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

real-time(zws) [LONG-LIVED FEAT] #65

Open
2 tasks
nagy-nabil opened this issue Sep 15, 2023 · 0 comments
Open
2 tasks

real-time(zws) [LONG-LIVED FEAT] #65

nagy-nabil opened this issue Sep 15, 2023 · 0 comments
Labels
p0-high Priority High p1-mid Priority Mid

Comments

@nagy-nabil
Copy link
Member

nagy-nabil commented Sep 15, 2023

we're working on real-time collaboration.
for now, the backend is on a separate repo the-zagy/zws
the front code is in zws, please merge the main into the zws branch in daily basis

the backend being developed using fastify + ws

I know firebase or supabase might be better than custom backend but Idgaf

  • create a wrapper around WebSocket.send that have kind of auto-completion to the events that could be send from user to server
     	// something between those lines
     	class ZagyWebSocket<T extends object> extends WebSocket {		
     	// oFC, also support default signature of "send"
     	send(input: keyof typeof T){
     		const str = JSON.stringify(input)
     		super.send(str);
     	}
  • convert the repo to monorepo to make sharing types for typesafe event handling easier

NOTE: the fastify server will be used to support saving scenes on the cloud (Z+)

@nagy-nabil nagy-nabil changed the title real-time(zws) real-time(zws) [LONG-LIVED FEAT] Sep 15, 2023
@nagy-nabil nagy-nabil added p0-high Priority High p1-mid Priority Mid labels Sep 15, 2023
@nagy-nabil nagy-nabil pinned this issue Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p0-high Priority High p1-mid Priority Mid
Projects
None yet
Development

No branches or pull requests

1 participant