SourcePluginHost
Source runtime and the published Remedia transport sharing one set of handlers.
class SourcePluginHostSource runtime and the published Remedia transport sharing one set of handlers.
Constructors
constructor
constructor(options: SourcePluginHostOptions)Create a host without starting a listener.
Parameters
| Name | Type | Description |
|---|---|---|
| options | SourcePluginHostOptions | Transport and source settings. |
Properties
runtimereadonly
readonly runtime: SourcePluginRuntimeSource execution independent of transport.
pluginsreadonly
readonly plugins: PluginRegistryCanonical source plugin registry.
extractorsreadonly
readonly extractors: ExtractorExecutionContextLegacy constructor registration adapter.
remediareadonly
readonly remedia: PluginHost<PluginOperations>Underlying generic host; exposes discovery, middleware matching and transport.
hostIdreadonly
readonly hostId: stringStable deployment identity, independent of provider identifiers and network addresses.
Methods
handle
handle(request: PluginRequest): Promise<ExecuteResult>Execute directly without serialization; caller owns returned media.
Parameters
| Name | Type | Description |
|---|---|---|
| request | PluginRequest | Generic Remedia request targeting discord-player.source. |
Returns
Promise<ExecuteResult>
fetch
matches
matches(path: string): booleanIdentify Remedia routes for Node middleware.
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | URL pathname. |
Returns
boolean
close
close(): Promise<void>Cancel media and operations, release state, and destroy sources.
Returns
Promise<void>