// Do we have an instance in the registry?
if ($registryInstance->instanceExists('socket_registry')) {
// Then use this instance
// Do we have an instance in the registry?
if ($registryInstance->instanceExists('socket_registry')) {
// Then use this instance