Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ emit
Function
emit
src/lib/auth.js:35–39 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
33
const
loginEvents = {
34
listeners:
new
Set(),
35
emit(data) {
36
for
(
const
listener of this.listeners) {
37
listener(data);
38
}
39
},
40
addListener(callback) {
41
this.listeners.add(callback);
42
},
Callers
1
editorFile.js
File · 0.70
Calls
1
listener
Function · 0.85
Tested by
no test coverage detected