Closed Alex-Mastin closed 8 months ago
The warning can be solved by making a small change in client/context.tsx
useEffect(() => {
if (instance?.readyState === 1) {
return () => instance?.close();
}
}, []);
I've just published next-ws@0.2.7
, which fixes this issue.
I'm using Next.js 13.4.10. I created a project with
create-t3-app
and set up the project to follow the example provided in the README. Unfortunately I'm unable to get it working.This warning is in the console on page load:
If I try pushing the button to send a message to the server, I get this error: