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

Function send

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

Source from the content-addressed store, hash-verified

32const socket = new eio.Socket();
33let last;
34function send () {
35 last = new Date();
36 socket.send('ping');
37 $('transport').innerHTML = socket.transport.name;
38}
39
40socket.on('open', () => {
41 if ($('chart').getContext) {

Callers 2

index.jsFile · 0.70
sendMethod · 0.50

Calls 2

$Function · 0.70
sendMethod · 0.45

Tested by

no test coverage detected