update socket server to integrate redis