add deps , realize encode handshake key and realize socket