replay(1) removed from socket connection

This commit is contained in:
Elena Bobkova 2017-06-01 14:49:54 +03:00
parent 4e30aa9fa7
commit 24bcae7170
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ public abstract class SocketConnection {
socket.off(socketEvent.getName());
messagesObservableCache.remove(socketEvent);
}))
.replay(1)
.refCount();
.publish();
messagesObservableCache.put(socketEvent, result);
}
observableSubscriber.onNext(result);