Lines Matching refs:websocket
20 channels.open = diagnosticsChannel.channel('undici:websocket:open')
21 channels.close = diagnosticsChannel.channel('undici:websocket:close')
22 channels.socketError = diagnosticsChannel.channel('undici:websocket:socket_error')
33 * @see https://websockets.spec.whatwg.org/#concept-websocket-establish
36 * @param {import('./websocket').WebSocket} ws
38 * @param {Partial<import('../../types/websocket').WebSocketInit>} options
49 // "websocket", credentials mode is "include", cache mode is "no-store" ,
55 mode: 'websocket',
68 // 3. Append (`Upgrade`, `websocket`) to request’s header list.
80 request.headersList.append('sec-websocket-key', keyValue)
84 request.headersList.append('sec-websocket-version', '13')
90 request.headersList.append('sec-websocket-protocol', protocol)
95 // https://github.com/mozilla/gecko-dev/blob/ce78234f5e653a5d3916813ff990f053510227bc/netwerk/protocol/websocket/WebSocketChannel.cpp#L2673
101 // request.headersList.append('sec-websocket-extensions', permessageDeflate)
134 // insensitive match for the value "websocket", the client MUST
136 if (response.headersList.get('Upgrade')?.toLowerCase() !== 'websocket') {
137 failWebsocketConnection(ws, 'Server did not set Upgrade header to "websocket".')
270 websocket: ws,