louis49 / androidtv-remote

MIT License
68 stars 23 forks source link

Ping message issue and resulted closed connection #38

Closed EowynREN closed 10 months ago

EowynREN commented 10 months ago

I'm working on a Java implementation of this, but I'm encountering difficulties with the ping request.

It appears that the client responds with the count of received ping messages, but the server doesn't just reply with this value; instead, it closes the connection shortly after.

Would you be willing to share the payload, in bytes, that you use to respond to the ping request?

EowynREN commented 10 months ago

I guess the secret hide in RemoteMessageManager.js var array = this.RemoteMessage.encodeDelimited(message).finish();

But I didn't find the declaration for function encodeDelimited()

EowynREN commented 10 months ago

Just found it should be [4, 74, 2, 8, x], x = message.remotePingRequest.val1