Home / Function/ on() — vite Function Reference

on() — vite Function Reference

Architecture documentation for the on() function in ws.d.ts from the vite codebase.

Function typescript HMRClient HotRuntime calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  be8b37a6_963f_57e3_5232_f9d00a8f3f56["on()"]
  ad90463c_a644_6de1_2cdc_a0a9c84fd7a1["Server"]
  be8b37a6_963f_57e3_5232_f9d00a8f3f56 -->|defined in| ad90463c_a644_6de1_2cdc_a0a9c84fd7a1
  c14c8e97_ac40_f6c8_b163_b030de0d2974["on()"]
  c14c8e97_ac40_f6c8_b163_b030de0d2974 -->|calls| be8b37a6_963f_57e3_5232_f9d00a8f3f56
  c14c8e97_ac40_f6c8_b163_b030de0d2974["on()"]
  be8b37a6_963f_57e3_5232_f9d00a8f3f56 -->|calls| c14c8e97_ac40_f6c8_b163_b030de0d2974
  style be8b37a6_963f_57e3_5232_f9d00a8f3f56 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/types/ws.d.ts lines 467–470

    on(
      event: 'connection',
      cb: (this: Server<T>, socket: T, request: IncomingMessage) => void,
    ): this

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does on() do?
on() is a function in the vite codebase, defined in packages/vite/src/types/ws.d.ts.
Where is on() defined?
on() is defined in packages/vite/src/types/ws.d.ts at line 467.
What does on() call?
on() calls 1 function(s): on.
What calls on()?
on() is called by 1 function(s): on.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free