module LSP::Codec

Defined in:

lsp/codec.cr

Class Method Summary

Class Method Detail

def self.read_message(io : IO, outstanding = {} of String | Int64 => Message::AnyRequest) : Message::Any #

Read a message using the LSP wire format, including headers. Silently swallows malformed lines/messages that get in the way. Raises IO::EOFError when the IO is out of data to be read.


[View source]
def self.write_message(io : IO, message : Message::Any, outstanding = {} of String | Int64 => Message::AnyRequest) #

Write a message using the LSP wire format, including headers.


[View source]