interface
ServerDriver
Driver interface for server-side usage.
This is a minimal interface that drivers must satisfy for use with startWorkerServer. Both ChildProcessDriver and WorkerThreadsDriver satisfy this interface.
Properties
name(readonly)
string
Driver identifier
Methods
createServer(options: ServerOptions): ServerChannel | Promise<ServerChannel>Create server channel
Parameters
Returns
ServerChannel | Promise<ServerChannel>getStartupData(): unknownGet startup data (throws if not in correct context)
Returns
unknown