You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/11/02 04:28:55 UTC

[GitHub] songxing10000 opened a new issue #1696: weex页面在客户端上的刷新问题

songxing10000 opened a new issue #1696: weex页面在客户端上的刷新问题
URL: https://github.com/apache/incubator-weex/issues/1696
 
 
   <!--
   Thanks for using Weex. Please follow the [Bug Report Guidelines](http://weex-project.io/bug-report-guidelines.html) to file issues. A good bug report should include the following information:
   -->
   
   <!--
   感谢使用 Weex。请遵照 [Bug 报告指南](http://weex-project.io/cn/bug-report-guidelines.html) 创建 issue,希望你可以提供如下信息:
   -->
   
   ## Description
   
   在使用命令 `npm run dev & npm run serve` 后,保存vue文件,网页里打开的是可以实时自动刷新的。
   但是在iOS上展示时,页面没有刷新。通过命令 `npm run dev & npm run serve`,保存后,一直没找到正确的监听方式地址。
   ```objc
   NSString *wsport = queryDict[@"wsport"] ?: @"8082";
       NSURL *socketURL = [NSURL URLWithString:[NSString stringWithFormat:@"ws://%@:%@", url.host, wsport]];
       controller.hotReloadSocket = [[SRWebSocket alloc] initWithURL:socketURL protocols:@[@"echo-protocol"]];
       controller.hotReloadSocket.delegate = controller;
       [controller.hotReloadSocket open];
   ```
   ip是本机调试的ip,端口号从8080到8084都试过了,一直连接失败,报错不是拒绝连接,就是超时。
   求解,iOS上能像网页那样实时刷新吗
   ## Environment
   
   <!-- The environment to reproduce this bug, such as **Weex Version** and **Device Mode**. -->
   <!-- You can get the environment of your device by [this example](http://dotwe.org/vue/1dea64f527db3fd109c0fb682d41c14f). -->
   
   ## Broken Example
   
   <!-- Please offer an example on the [online editor of Weex](http://dotwe.org/) to reproduce this bug. -->
   
   ## Steps to Reproduce
   
   <!-- Clear and concise steps to reproduce this bug. -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services