io.socket.engineio.parser.Packet Maven / Gradle / Ivy
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;
}
}