Flash required to explore WidSets
The newest version of the Flash Player is required to explore WidSets. Please download and install the free Flash Player from the icon below.
After installation, refresh this page »
Channel
View all posts in this topicChannel
...
Shell openWidget() {
openChannel(channelName, channelProtocol, NULL(), 60, onChannel);
return null;
}
void onChannel(int status, Channel channel) {
switch(status) {
case CHANNEL_OPENED:
{
printf("==== channel opened: %s ====", channel);
channel.join(NULL(), 10, null, null);
return;
}
case CHANNEL_JOINED:
{
printf("==== channel joined: %s ====", channel);
channel.setInfo(NULL());
return;
}
case CHANNEL_INFO_UPDATED:
{
printf("==== channel info updated: %s ====", channel);
channel.leave();
return;
}
case CHANNEL_LEFT:
{
printf("==== channel left: %s ====", channel);
channel.close();
return;
}
}
}
...
Result:
11:22:14: execute: T/118ee411b75 channel/create/noname core
11:22:16: handleResponse: T/118ee411b75
11:22:16: ==== channel opened: ck@2f48d2 ====
11:22:16: execute: T/118ee411b76 channel/join/noname core
11:22:18: handleResponse: T/118ee411b76
11:22:18: ==== channel joined: ck@2f48d2 ====
11:22:18: execute: T/118ee411b77 channel/setinfo/noname core
11:22:19: handleResponse: T/118ee411b77
11:22:21: handleRequest: mango.a/118eb52648f channel/push/info
11:22:21: ==== channel info updated: ck@2f48d2 ====
11:22:21: execute: T/118ee411b78 channel/leave/noname core
11:22:23: handleResponse: T/118ee411b78
11:22:23: ==== channel joined: ck@2f48d2 ====
11:22:23: execute: T/118ee411b79 channel/setinfo/noname core
11:22:24: handleResponse: T/118ee411b79
