Skip to content
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

Use kotlinx.rpc to exchange events between apps and debugger #125

Open
kitakkun opened this issue Sep 13, 2024 · 0 comments
Open

Use kotlinx.rpc to exchange events between apps and debugger #125

kitakkun opened this issue Sep 13, 2024 · 0 comments

Comments

@kitakkun
Copy link
Owner

kitakkun commented Sep 13, 2024

Recently, kotlinx.rpc was officially released. Though it is still in a Experimental stage, if we can adapt to it, the implementation for communications might become easier than current websocket implementation with Ktor.

The kotlinx.rpc allows us to send or receive flows via value parameters or return value of 'services'.

We can define RPC interface like below:

interface BackInTimeRPC : RPC {
    suspend fun initConnection(sessionId: String?, appEventFlow: Flow<BackInTimeDebugServiceEvent>): Flow<BackInTimeDebuggerEvent>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant