Class Neovim::Session::RPC
In: lib/neovim/session/rpc.rb
Parent: Object

Handles formatting RPC requests and writing them to the Serializer. This exposes an asynchronous API, in which responses are handled in callbacks.

@api private

Methods

new   notify   request   run   shutdown   stop  

Included Modules

Logging

Attributes

serializer  [R] 

Public Class methods

Public Instance methods

Send an RPC notification. Notifications don‘t receive a response from nvim.

Send an RPC request and enqueue it‘s callback to be called when a response is received.

Run the event loop, yielding received RPC messages to the block. RPC requests and notifications from nvim will be wrapped in Request and Notification objects, respectively, and responses will be passed to their callbacks with optional errors.

Shut down the event loop.

Stop the event loop.

[Validate]