Class WebSocketHelper
java.lang.Object
org.apache.openmeetings.core.util.WebSocketHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic final <T> Predicate<T>static IApplicationgetApp()static voidpublish(org.apache.openmeetings.util.ws.IClusterWsMessage m) static booleansend(org.apache.openmeetings.util.ws.IClusterWsMessage msg) static voidstatic voidsendClient(IWsClient omClient, byte[] b) static voidsendClient(IWsClient omClient, com.github.openjson.JSONObject msg) static voidsendClient(IWsClient omClient, RoomMessage m) static voidstatic voidsendRoom(Long roomId, com.github.openjson.JSONObject m, Predicate<Client> check, BiFunction<com.github.openjson.JSONObject, Client, com.github.openjson.JSONObject> func) static voidstatic voidsendRoomOthers(Long roomId, String uid, com.github.openjson.JSONObject m) static voidstatic void
-
Method Details
-
alwaysTrue
-
sendClient
-
sendClient
-
sendClient
-
getApp
-
send
public static boolean send(org.apache.openmeetings.util.ws.IClusterWsMessage msg) -
sendRoom
-
sendServer
-
sendRoom
-
sendRoomOthers
-
sendUser
-
sendAll
-
publish
public static void publish(@Nonnull 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)
-