Skip to content

Commit 1d82391

Browse files
committed
update
1 parent 405a631 commit 1d82391

File tree

9 files changed

+20
-50
lines changed

9 files changed

+20
-50
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
本项目基于聊天室的案例演示了 [weapp.socket.io](https://github.com/wxsocketio/weapp.socket.io) 的基本用法.
44

5-
Server 端使用的是 [socket.io](https://socket.io) 官方的 [chat demo](https://github.com/socketio/socket.io/tree/master/examples/chat) 源码, 部署在了 [heroku](https://vast-plateau-30681.herokuapp.com/) 上.
5+
Server 端使用的是 [socket.io](https://socket.io) 官方的 [chat demo](https://socket.io/demos/chat/), 你可以同时使用两者进行聊天测试。
66

77
> 默认使用了 Socket.io 官网版本
88
9-
> 注意: 因为 Server 的地址是 `HTTPS`的, 由于小程序开发版本对域名的限制, 请在`微信开发者工具` -> `详情` 菜单中勾选 `不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书`
9+
> 注意:
10+
> 因为 Server 的地址是 `HTTPS` 的, 由于小程序开发版本对域名的限制,
11+
> 请在 `微信开发者工具` -> `详情` 菜单中勾选 `不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书`
12+
1013

1114
<img src="./screenshots_1.png" width="50%">

app.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
{
2-
"pages": [
3-
"pages/index/index",
4-
"pages/chat/index",
5-
"pages/file/index"
6-
],
2+
"pages": ["pages/index/index", "pages/chat/index"],
73
"window": {
84
"backgroundTextStyle": "light",
95
"navigationBarBackgroundColor": "#fff",
106
"navigationBarTitleText": "weapp.socket.io chat demo",
117
"navigationBarTextStyle": "black"
128
},
139
"sitemapLocation": "sitemap.json"
14-
}
10+
}

pages/file/base64.js

-2
This file was deleted.

pages/file/index.js

-30
This file was deleted.

pages/file/index.json

-3
This file was deleted.

pages/file/index.wxml

-3
This file was deleted.

pages/file/index.wxss

-1
This file was deleted.

0 commit comments

Comments
 (0)