Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djherbis/socket
/ On
Method
On
handler.go:14–14 ·
view source on GitHub ↗
(event string, fn interface{})
Source
from the content-addressed store, hash-verified
12
// javascript objects emitted by the client-side socket.
13
type
EventHandler
interface
{
14
On(event string, fn
interface
{}) error
15
}
16
17
// Handler is both a PacketHandler and a EventHandler
Callers
5
On
Method · 0.65
On
Method · 0.65
main
Function · 0.65
main
Function · 0.65
main
Function · 0.65
Implementers
3
handler
handler.go
clientSocket
client.go
namespace
namespace.go
Calls
no outgoing calls
Tested by
no test coverage detected