org.webbitserver.WebSocketHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webbit Show documentation
Show all versions of webbit Show documentation
A Java event based WebSocket and HTTP server
package org.webbitserver;
public interface WebSocketHandler {
void onOpen(WebSocketConnection connection) throws Exception;
void onClose(WebSocketConnection connection) throws Exception;
void onMessage(WebSocketConnection connection, String msg) throws Throwable;
void onMessage(WebSocketConnection connection, byte[] msg) throws Throwable;
void onPong(WebSocketConnection connection, String msg) throws Throwable;
}