Home / Function/ send() — vite Function Reference

send() — vite Function Reference

Architecture documentation for the send() function in hmr.ts from the vite codebase.

Function typescript HMRClient HotRuntime calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  6cbd2953_6c7a_3620_4afe_54813dab91b1["send()"]
  d86a8333_3c9a_922b_57b2_926575326289["HMRContext"]
  6cbd2953_6c7a_3620_4afe_54813dab91b1 -->|defined in| d86a8333_3c9a_922b_57b2_926575326289
  8734724b_d91d_59c5_6ae1_9c54c972eea0["invalidate()"]
  8734724b_d91d_59c5_6ae1_9c54c972eea0 -->|calls| 6cbd2953_6c7a_3620_4afe_54813dab91b1
  35fc37bd_c261_5995_72bc_7f84d707de44["send()"]
  35fc37bd_c261_5995_72bc_7f84d707de44 -->|calls| 6cbd2953_6c7a_3620_4afe_54813dab91b1
  35fc37bd_c261_5995_72bc_7f84d707de44["send()"]
  6cbd2953_6c7a_3620_4afe_54813dab91b1 -->|calls| 35fc37bd_c261_5995_72bc_7f84d707de44
  style 6cbd2953_6c7a_3620_4afe_54813dab91b1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/shared/hmr.ts lines 150–152

  send<T extends string>(event: T, data?: InferCustomEventPayload<T>): void {
    this.hmrClient.send({ type: 'custom', event, data })
  }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does send() do?
send() is a function in the vite codebase, defined in packages/vite/src/shared/hmr.ts.
Where is send() defined?
send() is defined in packages/vite/src/shared/hmr.ts at line 150.
What does send() call?
send() calls 1 function(s): send.
What calls send()?
send() is called by 2 function(s): invalidate, send.

Analyze Your Own Codebase

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

Try Supermodel Free