Skip to content

protocol gateway not work well while two conn using different protocol #28

@wsky

Description

@wsky

Receiver.java

// for send message to lower buffer
    public ByteBuffer parseMessage(String protocol, Message message) {
        if (MQTT.equalsIgnoreCase(protocol)) {
            return MqttMessageIO.parseServerSending((MqttMessage) message,
                    (ByteBuffer) message.body);
        } else {
            return MessageIO.parseServerSending(message,
                    (ByteBuffer) message.body);
        }
    }

the convert should move to MqttMessageIO

(MqttMessage) message

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions