if (event.getType() == RemoteRxEvent.Type.subscribed){
return handleSubscribeRequest(event, connection, slottingStrategyReference, unsubscribeCallbackReference);
}else if (event.getType() == RemoteRxEvent.Type.unsubscribed){
Subscription subscription = unsubscribeCallbackReference.getValue();
if (subscription != null){
subscription.unsubscribe();
}
releaseSlot(slottingStrategyReference.getValue(), connection);
serverMetrics.incrementUnsubscribedCount();
logger.debug("Connection: "+connection.toString()+" unsubscribed");
}