* [ios] update websocket demo

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/bfb19cbd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/bfb19cbd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/bfb19cbd

Branch: refs/heads/master
Commit: bfb19cbd1a2d1f9babfa56abec1550993cf3130d
Parents: 2ef5840
Author: kfeagle <[email protected]>
Authored: Fri Feb 24 21:33:06 2017 +0800
Committer: kfeagle <[email protected]>
Committed: Fri Feb 24 21:33:06 2017 +0800

----------------------------------------------------------------------
 examples/module/websocket-demo.we | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/bfb19cbd/examples/module/websocket-demo.we
----------------------------------------------------------------------
diff --git a/examples/module/websocket-demo.we 
b/examples/module/websocket-demo.we
index 5dbed7d..74ad8a6 100644
--- a/examples/module/websocket-demo.we
+++ b/examples/module/websocket-demo.we
@@ -30,7 +30,7 @@
             <div style="background-color: lightgray">
                 <text class="title" style="height: 80px ;padding: 20px;color: 
black">method = onmessage</text>
             </div>
-            <text style="color: black;height: 400px">{{onmessage}}</text>
+            <text style="color: black;height: 100px">{{onmessage}}</text>
             <div style="background-color: lightgray">
                 <text class="title" style="height: 80px ;padding: 20px;color: 
black">method = onclose</text>
             </div>
@@ -86,7 +86,7 @@
         },
         methods: {
             connect:function() {
-                websocket.WebSocket('ws://echo.websocket.org');
+                websocket.WebSocket('ws://echo.websocket.org','');
                 var self = this;
                 self.onopeninfo = 'connecting...'
                 websocket.onopen = function(e)

Reply via email to