We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, I have the following:
// client . . . import { io } from 'socket.io-client'; . . . const socket = io('https://my_domain.com', { reconnectionDelay: 1000, reconnection: true, reconnectionAttemps: 10, transports: ['websocket', 'polling', 'flashsocket'], agent: false, upgrade: true, secure: process.env.NODE_ENV !== 'development', rejectUnauthorized: false, query: { userId: user.id }, });
// server . . . import fastifySocketIo from 'fastify-socket.io'; . . . app.register(fastifySocketIo, { pingInterval: 10000, pingTimeout: 5000, cookie: false, }); . . .
Locally everything works just fine, but when NODE_ENV is set to production, a connection can't be made. What am I doing wrong here?
NODE_ENV
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, I have the following:
Locally everything works just fine, but when
NODE_ENV
is set to production, a connection can't be made. What am I doing wrong here?The text was updated successfully, but these errors were encountered: