Class WebSocketHelper


  • public class WebSocketHelper
    extends Object
    • 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)
      • 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)