socket and redis client