-
Notifications
You must be signed in to change notification settings - Fork 39
Description
I'm working on implementing the protocol as a KOReader plugin, and I had some difficulties understanding the protocol.
It would be really helpful if the repo included some examples of the entire protocol start to finish, either as text or pcap files, as it's a bit hard to piece together especially with https.
How is the protocol decided?
The protocol says that the possible protocols are http and https and that the discovery udp packet and response http post request include it, but doesn't describe how it's selected.
I interpreted it as the protocol in the request meaning set of supported protocols, with https meaning http or https, and the protocol in the response being the final decision from the set of supported protocols, so either participant can downgrade to http, is this correct? And responding with https after getting http is an error (errors also seems to be missing for this request)?
For my use case I rather avoid https if possible, I'm trying to use only lua with the already included libraries, so self-signing would be quite annoying and I don't have access a proper http server implementation.