blob: 7a51aced41741d894cf9657a61be632f48ffb198 (
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;
};
|