MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / render

Function render

examples/server/javascript/latency_public/index.js:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6let time;
7
8function render () {
9 if (smoothie) smoothie.stop();
10 $('chart').width = document.body.clientWidth;
11 smoothie = new SmoothieChart();
12 smoothie.streamTo($('chart'), 1000);
13 time = new TimeSeries();
14 smoothie.addTimeSeries(time, {
15 strokeStyle: 'rgb(255, 0, 0)',
16 fillStyle: 'rgba(255, 0, 0, 0.4)',
17 lineWidth: 2
18 });
19}
20
21// socket
22const socket = io();

Callers 1

index.jsFile · 0.85

Calls 2

$Function · 0.85
stopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…