Advertisement
Guest User

Untitled

a guest
May 7th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. var username = Configuration.PROJECT_NUMBER + "@" + Configuration.GCM_SERVER;
  2. xmpp = new XmppClientConnection
  3. {
  4. UseSSL = true,
  5. UseStartTLS = false,
  6. Server = Configuration.GCM_SERVER,
  7. ConnectServer = Configuration.GCM_SERVER,
  8. Port = Configuration.GCM_PORT,
  9. Username = username,
  10. Password = Configuration.GCM_API_KEY,
  11. AutoResolveConnectServer = true,
  12. SocketConnectionType = SocketConnectionType.Direct,
  13. AutoAgents = false,
  14. KeepAlive = true,
  15. AutoRoster = false,
  16. AutoPresence = false,
  17. UseCompression = false,
  18. Show = ShowType.chat
  19. };
  20.  
  21. xmpp.OnReadSocketData += Xmpp_OnReadSocketData;
  22. xmpp.OnWriteSocketData += Xmpp_OnWriteSocketData;
  23. xmpp.OnLogin += Xmpp_OnLogin;
  24. xmpp.OnMessage += Xmpp_OnMessage;
  25. xmpp.OnError += Xmpp_OnError;
  26. xmpp.OnClose += Xmpp_OnClose;
  27. xmpp.OnAuthError += Xmpp_OnAuthError;
  28.  
  29. xmpp.Open();
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement