ProtocolOptions
Additional initialization options.
handlerCoroutineContext is read once when Protocol.connect attaches a transport and stays fixed until the next Protocol.connect.
Constructors
Properties
whether to restrict emitted requests to only those the remote side advertised support for. Local-side capability checks are unaffected. Defaults to false for backward compatibility with SDK versions that did not advertise capabilities correctly.
coroutine context used to run inbound request and notification handlers once initialization has completed. Must contain a real dispatching kotlin.coroutines.ContinuationInterceptor. Dispatchers.Unconfined and unconfined test dispatchers are unsupported, since handler resumptions would then run on the transport read loop and reintroduce head-of-line blocking. Any kotlinx.coroutines.Job in this context is ignored.