README out of date? #3816
Unanswered
grubstarstar
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I was previously doing this to integrate it with express, but can't work out how to do it with the latest interface after upgrading.
I tried:
but my client sockets are failing to connect now. |
Beta Was this translation helpful? Give feedback.
0 replies
-
As long as you don't use import express from 'express'
import { Server } from 'socket.io'
const app = express()
const server = http.createServer(app)
const socket = new Server(server)
server.listen(8080); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looks like the readme is out of date with the latest API interface. E.g. when setting up with express. The new one exports a Server object which isn't mentioned in the README.
Beta Was this translation helpful? Give feedback.
All reactions