io.socket.engineio.parser.Packet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine.io-client Show documentation
Show all versions of engine.io-client Show documentation
Engine.IO Client Library for Java
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 - 2025 Weber Informatics LLC | Privacy Policy