com.feingto.iot.common.codec.MqttWebSocketCodec Maven / Gradle / Ivy
package com.feingto.iot.common.codec;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageCodec;
import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame;
import java.util.List;
/**
* WebSocket Mqtt 消息编解码器
*/
public class MqttWebSocketCodec extends MessageToMessageCodec {
@Override
protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy