jcelliott / turnpike

Go implementation of a WAMP (Web Application Messaging Protocol) client and router
MIT License
258 stars 88 forks source link

Publish hook #5

Closed beatgammit closed 10 years ago

beatgammit commented 11 years ago

Something like this should work:

type EventListener func (string, interface{})
RegisterEventListener(topicURI string, fun EventListener)

If topicURI is the empty string, the listener will be called on every PUBLISH.

jcelliott commented 10 years ago

Closing WAMPv1 issues. See WAMPv2 development on v2 branch.