Daljeet VirdiD
Convex Community9mo ago
2 replies
Daljeet Virdi

Websocket reconnecting.

I'm getting a lot of websocket reocnnection issues. Could you please help?

If I do this:

const convex = useMemo(() => 
    new ConvexHttpClient(process.env.NEXT_PUBLIC_CONVEX_URL!),
    []
  );

instead of const convex = useConvex()

Things go a bit faster, but still get a lot of reconnection issues like:

2025-05-03T15:46:00.842Z begin ws.onclose
logging.js:78 WebSocket closed with code 1013: InternalServerError
logging.js:78 Attempting reconnect in 51.371233042534726ms
logging.js:75 2025-05-03T15:46:00.894Z constructed WebSocket
Was this page helpful?