gwt-gae-channel-1.0-20010325

You are viewing an old version (v. 2) of this page.
The latest version is v. 11, last edited on Oct 11, 2011 (view differences | )
<< View previous version | view page history | view next version >>
Useful Information

This page has been generated by maven-confluence-plugin


Description

GAE CHANNEL EVENT

Introduction

First of all, you should read and be familiar with how to use the App Engine Channel API java on the server-side.

This library simply wraps the client-side JavaScript with GWT bindings to make it accessible in a GWT application, and it doesn't manage telling your client the client ID it should use. That part's up to you, and is described in the documentation for the Channel API.

A Short Sample

The following is a simple example of how to open a channel and receive updates when the channel receives a message.

ChannelFactory.createChannel(token, new ChannelCreatedCallback() {
  @Override
  public void onChannelCreated(Channel channel) {
    channel.open(new SocketListener() {
      @Override
      public void onOpen() {
        Window.alert("Channel opened!");
      }
      @Override
      public void onMessage(String message) {
        Window.alert("Received: " + message);
      }
      @Override
      public void onError(SocketError error) {
        Window.alert("Error: " + error.getDescription());
      }
      @Override
      public void onClose() {
        Window.alert("Channel closed!");
      }
    });
  }
});

Whenever the server sends a message to your client ID, the onMessage() method will get called with the message that was sent.

Project Summary

h2. Project Information

Field Value
Name GWT GAE channel API
Description GWT bindings for the App Engine Channel API client
Homepage http://code.google.com/p/gwt-gae-channel/

Project Organization

Field Value
Name Google, Inc.
URL http://www.google.com

Build Information

Field Value
GroupId gwt-gae-channel
ArtifactId gwt-gae-channel
Version 1.0-20010325
Type jar

Issue Tracking


Source Repository

h2. Overview
This project uses Subversion
to manage its source code. Instructions on Subversion use can be found at http://svnbook.red-bean.com/
.

Web Access

The following is a link to the online source repository.

[http://code.google.com/p/gwt-gae-channel/source/browse|http://code.google.com/p/gwt-gae-channel/source/browse]

Anonymous access

The source can be checked out anonymously from SVN with this command:

$ svn checkout http://gwt-gae-channel.googlecode.com/svn/trunk gwt-gae-channel

Developer access

Everyone can access the Subversion repository via HTTP, but Committers must checkout the Subversion repository via HTTPS.

$ svn checkout https://gwt-gae-channel.googlecode.com/svn/trunk gwt-gae-channel

To commit changes to the repository, execute the following command to commit your changes (svn will prompt you for your password)

$ svn commit --username your-username -m "A message"

Access from behind a firewall

For those users who are stuck behind a corporate firewall which is blocking HTTP access to the Subversion repository, you can try to access it via the developer connection:

$ svn checkout https://gwt-gae-channel.googlecode.com/svn/trunk gwt-gae-channel

Access through a proxy

The Subversion client can go through a proxy, if you configure it to do so. First, edit your "servers" configuration file to indicate which proxy to use. The file's location depends on your operating system. On Linux or Unix it is located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion". (Try "echo %APPDATA%", note this is a hidden directory.)
There are comments in the file explaining what to do. If you don't have that file, get the latest Subversion client and run any command; this will cause the configuration directory and template files to be created.
Example: Edit the 'servers' file and add something like:

[global]
http-proxy-host = your.proxy.name
http-proxy-port = 3128

Project Dependencies

h2. provided
The following is a list of provided dependencies for this project. These dependencies are required to compile the application, but should be provided by default when using the library:

GroupId ArtifactId Version Classifier Type Optional
com.google.gwt gwt-user 2.1.0 - jar -

report.transitivedependencies.title

report.transitivedependencies.intro

Project Dependency Graph

h2. Dependency Tree

report.dependencies.graph.tables.title

GWT GAE channel API
GWT bindings for the App Engine Channel API client
http://code.google.com/p/gwt-gae-channel/

gwt-user
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
http://code.google.com/webtoolkit/gwt-user/

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.