api for socket