Skip to content

Commit

Permalink
#88: simplify the ping stanza construction code
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Oct 31, 2020
1 parent eb81f71 commit 56b5943
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Emulsion/Xmpp/SharpXmppHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ let message (id: string) (toAddr: string) (text: string): XMPPMessage =
m

let ping (jid: JID) (id: string): XMPPIq =
let iq = XMPPIq()
iq.SetAttributeValue(Id, id)
iq.IqType <- XMPPIq.IqTypes.get
iq.To <- jid
let iq = XMPPIq(XMPPIq.IqTypes.get, id, To = jid)
iq.Add(XElement(Ping))
iq

Expand Down

0 comments on commit 56b5943

Please sign in to comment.