test permessagedeflate
This commit is contained in:
parent
a43067dbc1
commit
1a4d4b8dbc
1 changed files with 7 additions and 1 deletions
|
|
@ -21,8 +21,14 @@ import { connectToHume } from "./models/hume.ts";
|
|||
const server = createServer();
|
||||
|
||||
const wss: _WebSocketServer = new WebSocketServer({ noServer: true,
|
||||
perMessageDeflate: false,
|
||||
});
|
||||
|
||||
wss.on('headers', (headers, req) => {
|
||||
// You should NOT see any "Sec-WebSocket-Extensions" here
|
||||
console.log('WS response headers:', headers);
|
||||
});
|
||||
|
||||
wss.on("connection", async (ws: WSWebSocket, payload: IPayload) => {
|
||||
const { user, supabase } = payload;
|
||||
|
||||
|
|
@ -103,7 +109,7 @@ wss.on("connection", async (ws: WSWebSocket, payload: IPayload) => {
|
|||
});
|
||||
|
||||
server.on("upgrade", async (req, socket, head) => {
|
||||
console.log("upgrade");
|
||||
console.log('foobar upgrade', req.headers);
|
||||
let user: IUser;
|
||||
let supabase: SupabaseClient;
|
||||
let authToken: string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue