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

io.github.webscoket.core.handler.MessageHandler Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy