Class WebSocketHelper
- java.lang.Object
-
- org.apache.openmeetings.core.util.WebSocketHelper
-
public class WebSocketHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Predicate<T>alwaysTrue()static IApplicationgetApp()static voidpublish(org.apache.openmeetings.util.ws.IClusterWsMessage m)static booleansend(org.apache.openmeetings.util.ws.IClusterWsMessage msg)static voidsendAll(String m)static voidsendClient(IWsClient omClient, byte[] b)static voidsendClient(IWsClient omClient, com.github.openjson.JSONObject msg)static voidsendClient(IWsClient omClient, RoomMessage m)static voidsendRoom(Long roomId, com.github.openjson.JSONObject m)static voidsendRoom(Long roomId, com.github.openjson.JSONObject m, Predicate<Client> check, BiFunction<com.github.openjson.JSONObject,Client,com.github.openjson.JSONObject> func)static voidsendRoom(RoomMessage m)static voidsendRoomOthers(Long roomId, String uid, com.github.openjson.JSONObject m)static voidsendServer(RoomMessage m)static voidsendUser(Long userId, com.github.openjson.JSONObject m)
-
-
-
Method Detail
-
alwaysTrue
public static final <T> Predicate<T> alwaysTrue()
-
sendClient
public static void sendClient(IWsClient omClient, byte[] b)
-
sendClient
public static void sendClient(IWsClient omClient, com.github.openjson.JSONObject msg)
-
sendClient
public static void sendClient(IWsClient omClient, RoomMessage m)
-
getApp
public static IApplication getApp()
-
send
public static boolean send(org.apache.openmeetings.util.ws.IClusterWsMessage msg)
-
sendRoom
public static void sendRoom(RoomMessage m)
-
sendServer
public static void sendServer(RoomMessage m)
-
sendRoom
public static void sendRoom(Long roomId, com.github.openjson.JSONObject m)
-
sendRoomOthers
public static void sendRoomOthers(Long roomId, String uid, com.github.openjson.JSONObject m)
-
sendUser
public static void sendUser(Long userId, com.github.openjson.JSONObject m)
-
sendAll
public static void sendAll(String m)
-
publish
public static void publish(org.apache.openmeetings.util.ws.IClusterWsMessage m)
-
sendRoom
public static void sendRoom(Long roomId, com.github.openjson.JSONObject m, Predicate<Client> check, BiFunction<com.github.openjson.JSONObject,Client,com.github.openjson.JSONObject> func)
-
-