instagram4j / instagram4j-realtime

Java MQTT/MQTToT client for instagram realtime protocol
Apache License 2.0
6 stars 1 forks source link

MQTT 3/3.1.1 Implementation #1

Open jvogit opened 3 years ago

jvogit commented 3 years ago

Currently there is a very basic structure for sending and receiving packets as a client conforming to the MQTT protocol 3/3.1.1 We need a proper implementation of all MQTT 3/3.1.1 requests and responses. Some smaller issues from this:

Mostly I'm looking for discussion on the best way to handle this. Currently, I'm thinking to have one class represent each type of packet that can be sent by code or decoded from the socket. I'm looking to maybe have a more elegant way to asynchronously process incoming packets/send packets. Currently a simple ScheduledExecutor is used.

MQTT 3.1.1 SPEC