MCPcopy
hub / github.com/socketio/socket.io / read

Function read

packages/socket.io/client-dist/socket.io.js:1525–1535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1523 encoderStream.readable.pipeTo(stream.writable);
1524 _this._writer = encoderStream.writable.getWriter();
1525 var read = function read() {
1526 reader.read().then(function (_ref) {
1527 var done = _ref.done,
1528 value = _ref.value;
1529 if (done) {
1530 return;
1531 }
1532 _this.onPacket(value);
1533 read();
1534 })["catch"](function (err) {});
1535 };
1536 read();
1537 var packet = {
1538 type: "open"

Callers 3

readMethod · 0.85
doOpenMethod · 0.85
socket.io.jsFile · 0.85

Calls 2

readMethod · 0.80
onPacketMethod · 0.45

Tested by

no test coverage detected