summaryrefslogtreecommitdiff
path: root/xmpp/presence.go
blob: 00eaa479b02a4d9e847d1810657962a364490996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package xmpp

import (
	"encoding/xml"
	"log"
)

func (s *session) sendPresence() {
	start := xml.StartElement{
		xml.Name{"", "presence"},
		[]xml.Attr{},
	}

	err := s.tx.EncodeElement(struct{}{}, start)
	if err != nil {
		log.Println("Could not encode presence!")
		return
	}
}