1 export var createSocket = function (host, port, options) {
2 return new TCPSocket(host, port, options);
5 export var createServer = function (port, options, backlog) {
6 return new TCPServerSocket(port, options, backlog);
9 // See test_tcpsocket_client_and_server_basics.html's version for rationale.
10 export var socketCompartmentInstanceOfArrayBuffer = function (obj) {
11 return obj instanceof ArrayBuffer;