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

Function render

packages/engine.io/examples/latency/public/index.js:18–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16let time;
17
18function render () {
19 if (smoothie) smoothie.stop();
20 $('chart').width = document.body.clientWidth;
21 smoothie = new SmoothieChart();
22 smoothie.streamTo($('chart'), 1000);
23 time = new TimeSeries();
24 smoothie.addTimeSeries(time, {
25 strokeStyle: 'rgb(255, 0, 0)',
26 fillStyle: 'rgba(255, 0, 0, 0.4)',
27 lineWidth: 2
28 });
29}
30
31// socket
32const socket = new eio.Socket();

Callers 2

index.jsFile · 0.85
App.test.jsFile · 0.85

Calls 1

$Function · 0.70

Tested by

no test coverage detected