From e4932b340603841e9ae3525f72db565b1fcdb0b7 Mon Sep 17 00:00:00 2001 From: C R <50278519+crooruhe@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:56:36 -0600 Subject: [PATCH] docs: fix documentation for websockets (#953) --- recipes/websocket.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ```