novastone-media / MQTT-Client-Framework

iOS, macOS, tvOS native ObjectiveC MQTT Client Framework
Other
1.84k stars 463 forks source link

MQTTSessionManager ans Websockets #528

Closed jannietheron closed 5 years ago

jannietheron commented 5 years ago

Short description

Is it possible to use the SessionManager over a WebSocket connection ? I can successfully connect using MQTTWebsocketTransport, but is there a way to use it with the manager. Having the reconnect and resubscribe would spare me a lot of code.

Environment

Expected behaviour

Inject either transport or session to the manager

jcavar commented 5 years ago

It is unfortunately not possible to use session manager over web socket. I think this is reasonable request but I am afraid that design of session manager doesn't allow us to do this at the moment.

jannietheron commented 5 years ago

Thanks. I started implementing a MQTTTransport implementing client using Starscream library

jcavar commented 5 years ago

Great, I will close this issue for now then.