io.github.webscoket.core.handler.MessageHandler Maven / Gradle / Ivy
package io.github.webscoket.core.handler;
import javax.websocket.Session;
import java.util.Map;
/**
* Genius
* 2023/09/06 19:28
**/
public interface MessageHandler {
boolean check(String msg);
void handler(String msg, Session session);
void wrapperAndSend(String msg);
void wrapperAndSend(Object msg);
void wrapperAndSend(Map msg);
void wrapperAndSend(String msg,String user);
void wrapperAndSend(Object msg,String user);
void wrapperAndSend(Map map,String user);
void send(String msg);
boolean close(String user);
}