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
Big chance I'm over thinking this.. feels like a bit of chicken before the egg situation.
const app = express() let server: ServerType if (isDev) { const options = { key: fs.readFileSync('certs/....pem'), cert: fs.readFileSync('certs/....pem'), } server = https.createServer(options, app) } else { server = http.createServer(app) } // Different app??? const wsApp = expressWs(app, server) // app.use???
I need to pass in the server option, but to create a server I need to pass in the app.
Someone put me out of my misery 😂
The text was updated successfully, but these errors were encountered:
It looks like what I've done is fine, but with a few changes:
const root = express() let server: ServerType if (isDev) { const options = { key: fs.readFileSync('certs/....pem'), cert: fs.readFileSync('certs/....pem'), } server = https.createServer(options, root) } else { server = http.createServer(root) } const { app } = expressWs(root, server) app.use... app.ws...
Sorry, something went wrong.
No branches or pull requests
Big chance I'm over thinking this.. feels like a bit of chicken before the egg situation.
I need to pass in the server option, but to create a server I need to pass in the app.
Someone put me out of my misery 😂
The text was updated successfully, but these errors were encountered: