Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 8216fca

Browse files
committed
Fix websocket proxying
The wrapper around the proxy didn't expose the ws method
1 parent 98482d7 commit 8216fca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/dev/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ function initializeProxy(port) {
7979
req.proxyOptions = options;
8080
req.alternativePaths = alternativePathsFor(req.url);
8181
return proxy.web(req, res, options);
82-
}
82+
},
83+
ws: (req, socket, head) => proxy.ws(req, socket, head)
8384
};
8485
}
8586

0 commit comments

Comments
 (0)