MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / WebsocketFactory

Function WebsocketFactory

packages/cli-v3/src/commands/dev.tsx:773–779  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

771}
772
773function WebsocketFactory(apiKey: string) {
774 return class extends wsWebSocket {
775 constructor(address: string | URL, options?: ClientOptions | ClientRequestArgs) {
776 super(address, { ...(options ?? {}), headers: { Authorization: `Bearer ${apiKey}` } });
777 }
778 };
779}
780
781// Returns the dependencies that are required by the output that are found in output and the CLI package dependencies
782// Returns the dependency names and the version to use (taken from the CLI deps package.json)

Callers 1

useDevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…