All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.socket.engineio.parser.Packet Maven / Gradle / Ivy

There is a newer version: 1.1.28
Show newest version
package io.socket.engineio.parser;


public class Packet {

    static final public String OPEN = "open";
    static final public String CLOSE = "close";
    static final public String PING = "ping";
    static final public String PONG = "pong";
    static final public String UPGRADE = "upgrade";
    static final public String MESSAGE = "message";
    static final public String NOOP = "noop";
    static final public String ERROR = "error";

    public String type;
    public T data;


    public Packet(String type) {
        this(type, null);
    }

    public Packet(String type, T data) {
        this.type = type;
        this.data = data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy