-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to a protocol-based interface for core #275
Comments
@cmyr Hi there! I could pick this one up. Would it for now just involve putting the public interface of the |
We might also consider having a protocol for the There is a lot of RPC surface area (especially considering all of the movement commands) so I think it would be okay to go halfway, initially; for instance you could have a protocol method "raw_notification" that still lets you specify a command by it's (string) method name. edit: hello! 👋 |
oh, also: there was an earlier attempt at something like this, in |
Ok, there are still couple of Events in
Every of those require more or less the following steps:
Those can be easily tackled as a separate PR's. |
closed by #350. |
A refactor that's long overdue: just as we define a client interface in
Client.swift
, we should define a core interface. All the various core methods would be presented through this interface; behind the surface it would wrap something like the existingCoreConnection
class.This will make it easy for us to change how the core connection is managed at some point in the future, and will also let us write tests in xi-mac that don't need to spin up a real instance of the core.
The text was updated successfully, but these errors were encountered: