We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06dccd commit 9a3969eCopy full SHA for 9a3969e
packages/server/src/server.ts
@@ -77,6 +77,10 @@ export const createApp = async (options: CreateAppOptions): Promise<{
77
};
78
79
const isEncrypted = (socket: net.Socket): boolean => {
80
+ if (options.bypassAuth) {
81
+ return true;
82
+ }
83
+
84
// tslint:disable-next-line:no-any
85
return (socket as any).encrypted;
86
@@ -125,7 +129,7 @@ export const createApp = async (options: CreateAppOptions): Promise<{
125
129
});
126
130
127
131
128
- const server = httpolyglot.createServer(options.httpsOptions || certs, app) as http.Server;
132
+ const server = httpolyglot.createServer(options.bypassAuth ? {} : options.httpsOptions || certs, app) as http.Server;
133
const wss = new ws.Server({ server });
134
135
wss.shouldHandle = (req): boolean => {
0 commit comments