Skip to content

SpawnTransport

Namespace: E2E.Engine.Protocol

public sealed class SpawnTransport : IEngineTransport

Starts the server as a child process per connection and speaks over its stdin and stdout, the way an editor starts a language server. Its stderr is kept for the message of a failure. Upstream’s spawnTransport.

Inheritance: object

Implements: IEngineTransport

View source

public SpawnTransport(SpawnTransportOptions options)

Starts the server as a child process per connection and speaks over its stdin and stdout, the way an editor starts a language server. Its stderr is kept for the message of a failure. Upstream’s spawnTransport.

Parameters

Name Type Description
options SpawnTransportOptions

public string Label { get; }

A short description for error messages: the command, or the address.

Value: string

public Task<ITransportConnection> OpenAsync(TransportContext context)

Parameters

Name Type Description
context TransportContext

Returns: Task<ITransportConnection>