Class ChatWebSocketHelper
- java.lang.Object
-
- org.apache.openmeetings.core.util.ChatWebSocketHelper
-
public class ChatWebSocketHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_ALLstatic StringID_ROOM_PREFIXstatic StringID_TAB_PREFIXstatic StringID_USER_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.openjson.JSONObjectgetMessage(User curUser, List<ChatMessage> list, BiConsumer<com.github.openjson.JSONObject,User> uFmt)static booleansend(org.apache.openmeetings.util.ws.IClusterWsMessage msg)static voidsendAll(ChatMessage m, com.github.openjson.JSONObject msg)static voidsendRoom(ChatMessage m, com.github.openjson.JSONObject msg)static voidsendUser(Long userId, ChatMessage m, com.github.openjson.JSONObject msg)
-
-
-
Field Detail
-
ID_TAB_PREFIX
public static final String ID_TAB_PREFIX
- See Also:
- Constant Field Values
-
ID_ALL
public static final String ID_ALL
- See Also:
- Constant Field Values
-
ID_ROOM_PREFIX
public static final String ID_ROOM_PREFIX
- See Also:
- Constant Field Values
-
ID_USER_PREFIX
public static final String ID_USER_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMessage
public static com.github.openjson.JSONObject getMessage(User curUser, List<ChatMessage> list, BiConsumer<com.github.openjson.JSONObject,User> uFmt)
-
send
public static boolean send(org.apache.openmeetings.util.ws.IClusterWsMessage msg)
-
sendRoom
public static void sendRoom(ChatMessage m, com.github.openjson.JSONObject msg)
-
sendUser
public static void sendUser(Long userId, ChatMessage m, com.github.openjson.JSONObject msg)
-
sendAll
public static void sendAll(ChatMessage m, com.github.openjson.JSONObject msg)
-
-