Skip to content

Commit

Permalink
Merge pull request #33 from mustardfrog/fastify_v4
Browse files Browse the repository at this point in the history
Fix deprecated method app.listen(PORT)
  • Loading branch information
alemagio authored Jul 31, 2023
2 parents acbd8fe + b847827 commit 2bcb3ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fastify.get('/', (req, reply) => {
fastify.io.emit('hello')
})

fastify.listen(3000)
fastify.listen({ port: 3000 })
```
For more details see [examples](https://github.com/alemagio/fastify-socket.io/tree/master/examples)

Expand Down
2 changes: 1 addition & 1 deletion examples/basic/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ app.ready(err => {
app.io.on('connect', (socket) => console.info('Socket connected!', socket.id))
})

app.listen(3000)
app.listen({ port: 3000 })
2 changes: 1 addition & 1 deletion examples/typescript-example/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ app.ready(err => {
app.io.on('connection', (socket: any) => console.info('Socket connected!', socket.id))
})

app.listen(3000)
app.listen({ port: 3000 })

0 comments on commit 2bcb3ef

Please sign in to comment.