Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ on
Function
on
packages/socket.io-component-emitter/lib/cjs/index.js:61–64 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
59
60
Emitter.prototype.once =
function
(event, fn){
61
function
on() {
62
this.off(event, on);
63
fn.apply(this, arguments);
64
}
65
66
on.fn = fn;
67
this.on(event, on);
Callers
nothing calls this directly
Calls
1
apply
Method · 0.80
Tested by
no test coverage detected