func printMsg(msg wray.Message) { fmt.Println("\n-------------------------------------------") fmt.Printf("%+v\n", msg.Data()) fmt.Print("-------------------------------------------\n\n") }
func (spy *spyExtn) Out(msg wray.Message) { fmt.Printf("[SPY] OUTGOING %s: %+v\n", msg.Channel(), msg) }
func (spy *spyExtn) In(msg wray.Message) { fmt.Printf("[SPY] INCOMING %s: %+v\n", msg.Channel(), msg) }
// Out sets the auth token on the map in Ext() func (extn *authExtn) Out(msg wray.Message) { ext := msg.Ext() ext["authToken"] = extn.token // this change is }