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

io.higgs.ws.client.WebSocketEvent Maven / Gradle / Ivy

package io.higgs.ws.client;

import io.higgs.events.Event;

/**
 * @author Courtney Robinson 
 */
public class WebSocketEvent implements Event {
    public static final WebSocketEvent
            PING = new WebSocketEvent("ws-ping"),
            PONG = new WebSocketEvent("ws-pong"),
            CONNECT = new WebSocketEvent("ws-connect"),
            DISCONNECT = new WebSocketEvent("ws-disconnect"),
            ERROR = new WebSocketEvent("ws-error"),
            MESSAGE = new WebSocketEvent("ws-message");
    protected String name;

    public WebSocketEvent(String name) {
        this.name = name;
    }

    public String name() {
        return name;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy