pocket.socket js complete