func RegisterListener(mtype string, lf ListenerFunc) {
	if _, ok := listeners[mtype]; ok {
		panic("Listener for type '" + mtype + "' already registered")
	}
	listeners[mtype] = lf
}
// RegisterListener registers a ListnerFunc to receive messages of the given
// type.
RegisterListener registers a ListnerFunc to receive messages of the given
type.
// RegisterListener registers a ListnerFunc to receive messages of the given // type .
func RegisterListener(mtype string, lf ListenerFunc) {
	if _, ok := listeners[mtype]; ok {
		panic("Listener for type '" + mtype + "' already registered")
	}
	listeners[mtype] = lf
}
func RegisterListener ( mtype string , lf ListenerFunc ) { if _ , ok := listeners [ mtype ] ; ok { panic ( " " + mtype + " " ) } listeners [ mtype ] = lf }
RegisterListener registers a ListnerFunc to receive messages of the given
type.
RegisterListener registers a ListnerFunc to receive messages of the given type .