Added definitions for XSockets.net JSAPI.