From 2e7ac22697121fb25f28600a902a8feaa137c111 Mon Sep 17 00:00:00 2001 From: Daenks Date: Fri, 1 Feb 2019 08:58:38 -0600 Subject: [PATCH] README update - Known Issue with express-generator --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 309651e..c1fb302 100644 --- a/README.md +++ b/README.md @@ -106,3 +106,13 @@ In most cases, you won't need this at all. ## Development This module is written in ES6 and uses ESM. + +## Known Issue with express-generator + +the Express generator will create it's own HTTP server listener inside ".\bin\www" instead of using the one express-ws has patched to allow websocket transactions. This results in calls to websockets to returning a 404 error. Call ```app.listen``` yourself to prevent this. +For Example: +```javascript +var port = normalizePort(process.env.PORT || '3002'); +app.set('port', port); +var server = app.listen(port); +```