socket api index