use of org.apache.openmeetings.core.util.ws.WsMessageRoom 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);
}
}
Aggregations