code: public boolean send(String topic, String message) throws IOException {
          List<Session> sessions = topicSubscribers.get(topic);
          if (sessions != null) {
              for (Session session : sessions) {
                  session.getBasicRemote().sendText(message);
              }
          }
          return sessions != null;
      }
docs: Returns true if any subscribers.