Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djherbis/socket
/ OnPacket
Method
OnPacket
handler.go:7–7 ·
view source on GitHub ↗
(Packet)
Source
from the content-addressed store, hash-verified
5
// PacketHandler responds to a Packet
6
type
PacketHandler
interface
{
7
OnPacket(Packet)
8
}
9
10
// EventHandler registers a function to be run when an event is received.
Callers
3
ServeHTTP
Method · 0.65
OnPacket
Method · 0.65
New
Function · 0.65
Implementers
2
handler
handler.go
caller
caller.go
Calls
no outgoing calls
Tested by
no test coverage detected