package socket api