MCPcopy 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.
13type EventHandler interface {
14 On(event string, fn interface{}) error
15}
16
17// Handler is both a PacketHandler and a EventHandler

Callers 5

OnMethod · 0.65
OnMethod · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 3

handlerhandler.go
clientSocketclient.go
namespacenamespace.go

Calls

no outgoing calls

Tested by

no test coverage detected