MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / #onReadable

Method #onReadable

examples/io/tcp/tlssocket/tlssocket.js:138–146  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

136 this.#callbacks.onWritable?.(count - 96);
137 }
138 #onReadable(count) {
139 this.#socket.readable = count;
140 if (this.#data)
141 return;
142
143 this.#messageHandler(true);
144 if (!this.#ready)
145 this.#messageHandler();
146 }
147 #onError() {
148 this.#callbacks.onError?.();
149 }

Callers 2

constructorMethod · 0.95
readMethod · 0.95

Calls 1

#messageHandlerMethod · 0.95

Tested by

no test coverage detected