Search in sources :

Example 1 with WsMessageAll

use of org.apache.openmeetings.core.util.ws.WsMessageAll in project openmeetings by apache.

the class WebSocketHelper method send.

public static void send(IClusterWsMessage _m) {
    if (_m instanceof WsMessageRoomMsg) {
        sendRoom(((WsMessageRoomMsg) _m).getMsg(), false);
    } else if (_m instanceof WsMessageRoom) {
        WsMessageRoom m = (WsMessageRoom) _m;
        sendRoom(m.getRoomId(), m.getMsg(), false);
    } else if (_m instanceof WsMessageChat) {
        WsMessageChat m = (WsMessageChat) _m;
        sendRoom(m.getChatMessage(), m.getMsg(), false);
    } else if (_m instanceof WsMessageUser) {
        WsMessageUser m = (WsMessageUser) _m;
        sendUser(m.getUserId(), m.getMsg(), false);
    } else if (_m instanceof WsMessageAll) {
        sendAll(((WsMessageAll) _m).getMsg(), false);
    }
}
Also used : WsMessageAll(org.apache.openmeetings.core.util.ws.WsMessageAll) WsMessageUser(org.apache.openmeetings.core.util.ws.WsMessageUser) WsMessageRoom(org.apache.openmeetings.core.util.ws.WsMessageRoom) WsMessageRoomMsg(org.apache.openmeetings.core.util.ws.WsMessageRoomMsg) WsMessageChat(org.apache.openmeetings.core.util.ws.WsMessageChat)

Aggregations

WsMessageAll (org.apache.openmeetings.core.util.ws.WsMessageAll)1 WsMessageChat (org.apache.openmeetings.core.util.ws.WsMessageChat)1 WsMessageRoom (org.apache.openmeetings.core.util.ws.WsMessageRoom)1 WsMessageRoomMsg (org.apache.openmeetings.core.util.ws.WsMessageRoomMsg)1 WsMessageUser (org.apache.openmeetings.core.util.ws.WsMessageUser)1