Websocket with Next appdir/RSC?
With the new RSC paradigm, how would we write a React app with Websocket (say for example a discord clone)? Do we still do it similar to how it has always been done or is there a new (better) pattern for these types of apps? How would this change if I already have a functional backend vs just starting everything from scratch?
Solution
You generate the html with the server component and let the client component do the rest