diff --git a/recipes/websocket.md b/recipes/websocket.md index eb033eb1..a43a5567 100644 --- a/recipes/websocket.md +++ b/recipes/websocket.md @@ -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' ```