Added latest version of socket API.