onSocketIndex added send cookies when connect event triggered