Unsubscribepublic class Unsubscribe extends Subscribe Bayeux Unsubscribe implementation.
See http://svn.xantus.org/shortbus/trunk/bayeux/protocol.txt for the technical
details.
// unsubscription for same:
//-----------------
// CLIENT -> SERVER
//-----------------
[
{
"channel": "/meta/unsubscribe",
"subscription": "/some/other/channel",
// optional
"authToken": "SOME_NONCE_PREVIOUSLY_PROVIDED_BY_SERVER"
}
// , ...
]
// and the server response:
//-----------------
// SERVER -> CLIENT
//-----------------
[
{
"channel": "/meta/unsubscribe",
"subscription": "/some/other/channel",
"successful": true,
"clientId": "SOME_UNIQUE_CLIENT_ID",
"error": "",
// optional
"authToken": "SOME_NONCE"
}
// , ...
] |
Constructors Summary |
---|
public Unsubscribe()
type = Verb.UNSUBSCRIBE;
|
Methods Summary |
---|
public java.lang.String | toJSON()
return "[{"
+ "\"error\":\"" + error + "\","
+ "\"subscription\":\"" + subscription + "\","
+ "\"successful\":" + successful + ","
+ "\"channel\":\"" + channel + "\""
+ "}]\n";
|
|