blob: 4adae6eb7285edb234fe66f69b3168b034b713c8 (
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.ed.tx.EncodeElement(presence{}, start)
if err != nil {
log.Println("Could not encode presence!")
return
}
}
|