blob: 04f9fd1f9356c3b09ea3204be164e16dec389316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
export var createSocket = function(host, port, options) {
return new TCPSocket(host, port, options);
};
export var createServer = function(port, options, backlog) {
return new TCPServerSocket(port, options, backlog);
};
// See test_tcpsocket_client_and_server_basics.html's version for rationale.
export var socketCompartmentInstanceOfArrayBuffer = function(obj) {
return obj instanceof ArrayBuffer;
};
|