Search in sources :

Example 1 with Emitter

use of io.socket.emitter.Emitter in project Android-SDK by Backendless.

the class RTClientSocketIO method subOff.

private Emitter subOff(String subscriptionId) {
    Map<String, String> request = new HashMap<>();
    request.put("id", subscriptionId);
    final Emitter emitter = connectionManager.get().emit("SUB_OFF", serialize(request));
    logger.info("subOff called");
    return emitter;
}
Also used : Emitter(io.socket.emitter.Emitter) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) HashMap(java.util.HashMap)

Example 2 with Emitter

use of io.socket.emitter.Emitter in project Android-SDK by Backendless.

the class RTClientSocketIO method metReq.

private Emitter metReq(RTMethodRequest methodRequest) {
    final Emitter emitter = connectionManager.get().emit("MET_REQ", serialize(methodRequest.toArgs()));
    logger.info("subOn called");
    return emitter;
}
Also used : Emitter(io.socket.emitter.Emitter)

Example 3 with Emitter

use of io.socket.emitter.Emitter in project Android-SDK by Backendless.

the class RTClientSocketIO method subOn.

private Emitter subOn(RTSubscription subscription) {
    final Emitter emitter = connectionManager.get().emit("SUB_ON", serialize(subscription.toArgs()));
    logger.info("subOn called");
    return emitter;
}
Also used : Emitter(io.socket.emitter.Emitter)

Aggregations

Emitter (io.socket.emitter.Emitter)3 HashMap (java.util.HashMap)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1