diff options
| -rw-r--r-- | xmpp/router.go | 2 | ||||
| -rw-r--r-- | xmpp/stream_pair.go | 4 | 
2 files changed, 5 insertions, 1 deletions
diff --git a/xmpp/router.go b/xmpp/router.go index 839f870..879579d 100644 --- a/xmpp/router.go +++ b/xmpp/router.go @@ -22,7 +22,7 @@ type routingTable []struct {  // variable would have the problem that it could be altered during execution.  func getRoutingTable() routingTable {  	return routingTable{ -		// TODO fill with entries +		{xml.Name{`http://etherx.jabber.org/streams`, `features`}, streamFeaturesHandler},  	}  } diff --git a/xmpp/stream_pair.go b/xmpp/stream_pair.go index c9108d1..3e42cd1 100644 --- a/xmpp/stream_pair.go +++ b/xmpp/stream_pair.go @@ -90,3 +90,7 @@ func closeStream(s *session) {  		log.Println("Could not encode stream end!")  	}  } + +func streamFeaturesHandler(e []xml.Token) { +	log.Println("Received stream features") +}  | 
