Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
32
const
socket =
new
eio.Socket();
33
let
last;
34
function
send () {
35
last =
new
Date();
36
socket.send(
'ping'
);
37
$(
'transport'
).innerHTML = socket.transport.name;
38
}
39
40
socket.on(
'open'
, () => {
41
if
($(
'chart'
).getContext) {
Callers
2
index.js
File · 0.70
send
Method · 0.50
Calls
2
$
Function · 0.70
send
Method · 0.45
Tested by
no test coverage detected