fix: Restore previous WSS CORS behavior
This commit is contained in:
parent
486a60e97c
commit
9495ddba25
|
@ -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.`);
|
||||
|
|
Reference in New Issue