Skip to content

Commit

Permalink
docs: fix documentation for websockets (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
crooruhe authored Jan 11, 2024
1 parent bd35b7b commit e4932b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ const socketProxy = createProxyMiddleware({
ws: true,
});

server.on('upgrade', proxy.upgrade); // <-- subscribe to http 'upgrade'
server.on('upgrade', socketProxy.upgrade); // <-- subscribe to http 'upgrade'
```

0 comments on commit e4932b3

Please sign in to comment.