Skip to content

Commit

Permalink
Update README.md (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellower committed Oct 31, 2022
1 parent 83ec6ac commit 6384aae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -129,9 +129,10 @@ This plugin uses the same router as the `fastify` instance, this has a few impli

```js
import Fastify from 'fastify'
import websocket from '@fastify/websocket'

const fastify = Fastify()
await fastify.register(require('@fastify/websocket'))
await fastify.register(websocket)

fastify.get('/', { websocket: true }, function wsHandler (connection, req) {
// bound to fastify server
Expand Down

0 comments on commit 6384aae

Please sign in to comment.