Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
LSP::JsonRpcHandler
Inherits
Reference
/
Object
Constructors
new
(input :
IO
, output :
IO
)
Source
Instance methods
listen
Source
on_notification
(method :
String
, &block :
JSON::Any
|
Nil
->
Nil
)
Source
on_request
(method :
String
, &block :
JSON::Any
|
Nil
->
JSON::Any
)
Source
send_notification
(method :
String
, params :
JSON::Any
|
Nil
= nil)
Source
send_request
(id :
String
|
Int32
, method :
String
, params :
JSON::Any
|
Nil
= nil)
Source
send_response
(id :
String
|
Int32
|
Nil
, result :
JSON::Any
|
Nil
= nil, error :
ResponseError
|
Nil
= nil)
Source