public void userEventTriggered(ChannelHandlerContext ctx, Object event) throws Exception {
if (event instanceof NewRxConnectionEvent) {
NewRxConnectionEvent rxConnectionEvent = (NewRxConnectionEvent) event;
bridgedObserver = rxConnectionEvent.getConnectedObserver();
} else if (event instanceof ConnectionReuseEvent) {
ConnectionReuseEvent reuseEvent = (ConnectionReuseEvent) event;
bridgedObserver = reuseEvent.getConnectedObserver();
}
super.userEventTriggered(ctx, event);
}