onMessage property

PublishSubject<ServerMessage> onMessage
getter/setter pair

onMessage event will be triggered when a message is received

Implementation

PublishSubject<ServerMessage> onMessage = PublishSubject<ServerMessage>();