davesters / rn-native-mqtt

An MQTT client for React Native that actually works and exposes a simple Javascript interface
MIT License
64 stars 44 forks source link

Update MqttClient to use websockets #7

Closed abedolinger closed 4 years ago

abedolinger commented 4 years ago

Lot of noise here, relevant code change is this in MqttClient.swift

        if url.string?.hasPrefix("ws") as! Bool {
            let websocket = CocoaMQTTWebSocket(uri: url.path)
            self.client = CocoaMQTT(clientID: "", socket: websocket)
        }