blob: e2b1841b0534fcccaee787d23f4f7c0ae4cbdc10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package xmpp
import (
"encoding/xml"
"log"
)
type presence struct{}
func (s *session) sendPresence() {
start := xml.StartElement{
xml.Name{"", "presence"},
[]xml.Attr{},
}
err := s.tx.EncodeElement(presence{}, start)
if err != nil {
log.Println("Could not encode presence!")
return
}
}
|