add sendBatch for socket
Merge "add sendBatch for socket" into 0.3.x