View definition

func HandleNotification

Defined in


Handle notifications of a certain name with automatic JSON encoding of values.

`fn` must conform to one of the following signatures:

func(s *Sock, name string, v interface{}) -- takes socket, name and parameters
func(name string, v interface{})          -- takes name and parameters, but no socket
func(v interface{})                       -- takes only parameters

If `name` is empty, handle all notifications which doesn't have a specific handler registered.

HandleNotification is referenced in 0 repositories