MCPcopy Create free account
hub / github.com/chrisle/StageLinq / push

Method push

devices/PlayerMessageQueue.ts:35–40  ·  view source on GitHub ↗

* Push data into the queue. * @param data Parsed data from a player.

(data: PlayerLayerState)

Source from the content-addressed store, hash-verified

33 * @param data Parsed data from a player.
34 */
35 push(data: PlayerLayerState) {
36 this.data.push(data);
37 if (!this.timeout) {
38 this.timeout = setTimeout(this.emptyCue.bind(this), UPDATE_RATE_MS);
39 }
40 }
41
42 /**
43 * Merge data, empty the queue, clear the timeout, and fire the callback.

Callers 13

messageHandlerMethod · 0.80
findBroadcastTargetsFunction · 0.80
connectToDeviceMethod · 0.80
discoverStageLinqFunction · 0.80
mainFunction · 0.80
getBroadcastTargetsMethod · 0.80
parseDataMethod · 0.80
updateTimeAverageMethod · 0.80
parseDataMethod · 0.80
parseDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected