go-xmpp icon indicating copy to clipboard operation
go-xmpp copied to clipboard

Empty chat record on Recv

Open gatlin opened this issue 12 years ago • 4 comments

I am using a slightly modified version of your example code (go-iconv doesn't work on my version of Mac OS X but github.com/djimenez/iconv-go does work => my UTF8 conversion functions are slightly different). I can send messages just fine and I can produce some kind of output every time I receive one but the chat record itself is empty. I verified this with

go func() {
    for {
        chat, err := talk.Recv()
        if err != nil {
            log.Fatal(err)
            fmt.Printf("Trouble receiving chat\n")
        }
        fmt.Printf("%v\n", chat)
    }
}()

And I receive { } for each message. Connecting to google talk servers.

gatlin avatar Jun 16 '12 03:06 gatlin