MCPcopy
hub / github.com/novnc/noVNC / rQwait

Method rQwait

core/websock.js:167–178  ·  view source on GitHub ↗
(msg, num, goback)

Source from the content-addressed store, hash-verified

165 // to be available in the receive queue. Return true if we need to
166 // wait (and possibly print a debug message), otherwise false.
167 rQwait(msg, num, goback) {
168 if (this._rQlen - this._rQi < num) {
169 if (goback) {
170 if (this._rQi < goback) {
171 throw new Error("rQwait cannot backup " + goback + " bytes");
172 }
173 this._rQi -= goback;
174 }
175 return true; // true means need more data
176 }
177 return false;
178 }
179
180 // Send queue
181

Callers 15

hasDataMethod · 0.80
_handleMessageMethod · 0.80
_negotiateSecurityMethod · 0.80
_handleSecurityReasonMethod · 0.80
_negotiateStdVNCAuthMethod · 0.80
_negotiateARDAuthMethod · 0.80
_negotiateTightAuthMethod · 0.80
_handleSecurityResultMethod · 0.80
_negotiateServerInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected