- readMessage : T → IO (Option Protocol.JsonRpc.Message)
- writeMessage : T → Protocol.JsonRpc.Message → IO Unit
Instances
Writer Actor for Output Channel #
A thread-safe output channel for sending messages to the client
- state : Lapis.Transport.WriterState✝
Writer state
Writer task
Instances For
Create a new output channel with a writer actor
Equations
- One or more equations did not get rendered due to their size.
Instances For
Send a message through the output channel (non-blocking)
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lapis.Transport.OutputChannel.sendNotification
(ch : OutputChannel)
(method : String)
(params : Lean.Json)
:
Send a notification through the output channel
Equations
- ch.sendNotification method params = ch.send (Lapis.Protocol.JsonRpc.Message.notification { method := method, params := some params })
Instances For
def
Lapis.Transport.OutputChannel.sendRequest
(ch : OutputChannel)
(id : Protocol.JsonRpc.RequestId)
(method : String)
(params : Lean.Json)
:
Send a request through the output channel
Equations
- ch.sendRequest id method params = ch.send (Lapis.Protocol.JsonRpc.Message.request { id := id, method := method, params := some params })
Instances For
Shutdown the writer actor
Equations
- One or more equations did not get rendered due to their size.