ws.d.ts — vite Source File
Architecture documentation for ws.d.ts, a typescript file in the vite codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f807a74d_76fa_6b24_918f_7ef78a219c18["ws.d.ts"] d55a9cec_90e1_f4ad_d084_e5cf07bdef40["node:events"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> d55a9cec_90e1_f4ad_d084_e5cf07bdef40 946bdba3_227b_3fc0_1b4c_ddbdb281f454["node:http"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> 946bdba3_227b_3fc0_1b4c_ddbdb281f454 d3247ce3_3db4_c9bd_3925_57eb350e29ff["node:https"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> d3247ce3_3db4_c9bd_3925_57eb350e29ff 72ef175c_11fd_f61f_3882_864645ae978a["node:stream"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> 72ef175c_11fd_f61f_3882_864645ae978a ebbb945d_81cf_81c7_3109_10a1a9b72d3a["node:tls"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> ebbb945d_81cf_81c7_3109_10a1a9b72d3a 6feed3e8_55b8_cce7_b5ef_e40b872585f7["node:url"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> 6feed3e8_55b8_cce7_b5ef_e40b872585f7 b433029c_cdc8_a023_ccb6_ef59b8d2a502["node:zlib"] f807a74d_76fa_6b24_918f_7ef78a219c18 --> b433029c_cdc8_a023_ccb6_ef59b8d2a502 style f807a74d_76fa_6b24_918f_7ef78a219c18 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// Modified and inlined to avoid extra dependency
// Source: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/ws/index.d.ts
// Type definitions for ws 8.5
// Project: https://github.com/websockets/ws
// Definitions by: Paul Loyd <https://github.com/loyd>
// Margus Lamp <https://github.com/mlamp>
// Philippe D'Alva <https://github.com/TitaneBoy>
// reduckted <https://github.com/reduckted>
// teidesu <https://github.com/teidesu>
// Bartosz Wojtkowiak <https://github.com/wojtkowiak>
// Kyle Hensel <https://github.com/k-yle>
// Samuel Skeen <https://github.com/cwadrupldijjit>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { EventEmitter } from 'node:events'
import type {
Agent,
ClientRequest,
ClientRequestArgs,
Server as HTTPServer,
IncomingMessage,
OutgoingHttpHeaders,
} from 'node:http'
import type { Server as HTTPSServer } from 'node:https'
import type { Duplex, DuplexOptions } from 'node:stream'
import type { SecureContextOptions } from 'node:tls'
import type { URL } from 'node:url'
import type { ZlibOptions } from 'node:zlib'
// WebSocket socket.
declare class WebSocket extends EventEmitter {
/** The connection is not yet open. */
static readonly CONNECTING: 0
/** The connection is open and ready to communicate. */
static readonly OPEN: 1
/** The connection is in the process of closing. */
static readonly CLOSING: 2
/** The connection is closed. */
static readonly CLOSED: 3
binaryType: 'nodebuffer' | 'arraybuffer' | 'fragments'
readonly bufferedAmount: number
readonly extensions: string
/** Indicates whether the websocket is paused */
readonly isPaused: boolean
readonly protocol: string
/** The current state of the connection */
readonly readyState:
| typeof WebSocket.CONNECTING
| typeof WebSocket.OPEN
| typeof WebSocket.CLOSING
| typeof WebSocket.CLOSED
readonly url: string
/** The connection is not yet open. */
readonly CONNECTING: 0
/** The connection is open and ready to communicate. */
// ... (506 more lines)
Domain
Subdomains
Types
Dependencies
- node:events
- node:http
- node:https
- node:stream
- node:tls
- node:url
- node:zlib
Source
Frequently Asked Questions
What does ws.d.ts do?
ws.d.ts is a source file in the vite codebase, written in typescript. It belongs to the HMRClient domain, HotRuntime subdomain.
What does ws.d.ts depend on?
ws.d.ts imports 7 module(s): node:events, node:http, node:https, node:stream, node:tls, node:url, node:zlib.
Where is ws.d.ts in the architecture?
ws.d.ts is located at packages/vite/src/types/ws.d.ts (domain: HMRClient, subdomain: HotRuntime, directory: packages/vite/src/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free