Hacker News new | ask | show | jobs
by tren-hard 2229 days ago
Can I use nextjs or ssr react with websockets? Does that go against the pattern of server side rendering?

If I have a large app that has a few pages which use websockets so I'm not sure if nextjs is something that makes sense for me or if I should just start with create-react-app and go from there.

1 comments

Sure, why not? SSR just creates the first version of the page, the web sockets can kick in once the page is rendered.
Ok that makes sense. Thanks