fix: Restore previous WSS CORS behavior

This commit is contained in:
Tom Moor 2021-07-05 23:01:25 -04:00
parent 486a60e97c
commit 9495ddba25
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ io.adapter(
})
);
io.origins((_, callback) => {
callback(null, true);
});
io.of("/").adapter.on("error", (err) => {
if (err.name === "MaxRetriesPerRequestError") {
console.error(`Redis error: ${err.message}. Shutting down now.`);