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();
- }
- To CCS<<11:59:58 834
- <stream:stream to='gcm.googleapis.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
- From CSS>> 11:59:59 037
- <stream:stream from="gcm.googleapis.com" id="AF8BB607948BF55F" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
- From CSS>> 11:59:59 101
- <stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
- To CCS<<11:59:59 115
- <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">ADIwNjAxOTEwOTA2Mlw0MGdjbS5nb29nbGVhcGlzLmNvbQBBSXphU3lESnhaa2tFX3hIcm56NXhWZndJclpFUmlMbnBqNVFIdkk=</auth>
- From CSS>> 11:59:59 312
- <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>ism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
- From CSS>> 11:59:59 314
- </stream:stream>urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>ism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement