go-xmpp
                                
                                
                                
                                    go-xmpp copied to clipboard
                            
                            
                            
                        Using channels?
Would it be possible just to create a channel between the server and the client, and the other client as well? Then code would be much cleaner and security would be enhanced, since everything would rely just in the security of the channel.
I do not know if it is able to modify security properties of channels in order to establish some authentication methods and cipherings in the very communications.
Look at this netchan example: https://github.com/qrush/go/blob/master/experiments/netchan/test/main.go
To use channel, while parsing xml, we must know what the next tag is, and we must receive data from channel with comming interface. Probably, it's diffcaul.