Class WebSocketHelper
java.lang.Object
org.apache.openmeetings.core.util.WebSocketHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic final <T> Predicate<T>
static IApplication
getApp()
static void
publish
(org.apache.openmeetings.util.ws.IClusterWsMessage m) static boolean
send
(org.apache.openmeetings.util.ws.IClusterWsMessage msg) static void
static void
sendClient
(IWsClient omClient, byte[] b) static void
sendClient
(IWsClient omClient, com.github.openjson.JSONObject msg) static void
sendClient
(IWsClient omClient, RoomMessage m) static void
static void
sendRoom
(Long roomId, com.github.openjson.JSONObject m, Predicate<Client> check, BiFunction<com.github.openjson.JSONObject, Client, com.github.openjson.JSONObject> func) static void
static void
sendRoomOthers
(Long roomId, String uid, com.github.openjson.JSONObject m) static void
static 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)
-