Closed alopatindev closed 7 months ago
Can you use Session#next
or Session#run
? The session is accessible as a reader on the client, i.e. client.session
.
Works, thanks!
However Session
is marked private. Will it become public at some point?
Will it become public at some point?
No plans at the moment. TBH I'm not really actively working on this library anymore, just bugfixes and stuff. So if this were to be made public (possibly on the Client
class, with an interface like you suggested), it would have to come from outside contributors.
In nvim I do
:call rpcnotify(0, 'event')
How do I know that the event has happened?
I wish the API was something like
client.subscribe('event', |args| print(args))
.I see no trace of anything similar to
next_message()
orrun_loop(request_cb = None, notification_cb = lambda event, args: print(args))
in the public API docs.Public method from_event_loop takes private type
EventLoop
as argument, which is constructed in the attach, but I see nothing like public API forEventLoop::read
.