diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-05 18:30:46 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-09 07:02:47 +0000 |
commit | 87888f166123d377ba44e801066f8858b9d33eda (patch) | |
tree | 9b271a612ce540b6e6a9bb05d2c5599bf5a4f276 /client/src | |
parent | ed6cee01b64003f8bdc7a0e9d8ef97bd1bf091be (diff) | |
download | vaadin-framework-87888f166123d377ba44e801066f8858b9d33eda.tar.gz vaadin-framework-87888f166123d377ba44e801066f8858b9d33eda.zip |
Additional push logging (#111)
Change-Id: I8f72b1f0e4a691d48b6ea641e48429fbb7f9f033
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/com/vaadin/client/communication/PushConnection.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/communication/PushConnection.java b/client/src/com/vaadin/client/communication/PushConnection.java index ca1185b028..ea54c3c44b 100644 --- a/client/src/com/vaadin/client/communication/PushConnection.java +++ b/client/src/com/vaadin/client/communication/PushConnection.java @@ -76,8 +76,9 @@ public class PushConnection { return config; } - protected void onOpen() { - VConsole.log("Atmosphere connection established"); + protected void onOpen(AtmosphereResponse response) { + VConsole.log("Atmosphere connection established using " + + response.getTransport()); connected = true; for (String message : messageQueue) { push(message); @@ -165,6 +166,10 @@ public class PushConnection { return getStringValue("error"); } + public final String getTransport() { + return getStringValue("transport"); + } + } private static native AtmosphereConfiguration createConfig() @@ -185,7 +190,7 @@ public class PushConnection { config.url = uri; config.onOpen = $entry(function(response) { - self.@com.vaadin.client.communication.PushConnection::onOpen()(); + self.@com.vaadin.client.communication.PushConnection::onOpen(*)(response)(); }); config.onMessage = $entry(function(response) { self.@com.vaadin.client.communication.PushConnection::onMessage(*)(response); |