Inject global socket