Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var username = Configuration.PROJECT_NUMBER + "@" + Configuration.GCM_SERVER;
- xmpp = new XmppClientConnection
- {
- UseSSL = true,
- UseStartTLS = false,
- Server = Configuration.GCM_SERVER,
- ConnectServer = Configuration.GCM_SERVER,
- Port = Configuration.GCM_PORT,
- Username = username,
- Password = Configuration.GCM_API_KEY,
- AutoResolveConnectServer = true,
- SocketConnectionType = SocketConnectionType.Direct,
- AutoAgents = false,
- KeepAlive = true,
- AutoRoster = false,
- AutoPresence = false,
- UseCompression = false,
- Show = ShowType.chat
- };
- xmpp.OnReadSocketData += Xmpp_OnReadSocketData;
- xmpp.OnWriteSocketData += Xmpp_OnWriteSocketData;
- xmpp.OnLogin += Xmpp_OnLogin;
- xmpp.OnMessage += Xmpp_OnMessage;
- xmpp.OnError += Xmpp_OnError;
- xmpp.OnClose += Xmpp_OnClose;
- xmpp.OnAuthError += Xmpp_OnAuthError;
- xmpp.Open();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement