Skip to content
This repository was archived by the owner on Mar 21, 2020. It is now read-only.

Commit 7d079c3

Browse files
committed
use webpack to compile
1 parent 5d57c4e commit 7d079c3

File tree

11 files changed

+3883
-51
lines changed

11 files changed

+3883
-51
lines changed

.babelrc

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"presets": [
3-
[
4-
"es2015",
5-
{
6-
"modules": false
7-
}
8-
]
9-
],
10-
"plugins": ["external-helpers"]
2+
"presets": ["es2015"],
3+
"plugins": ["transform-runtime"]
114
}

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
# Demo
88
使用 socket.io 官网的 chat demo server 实现的 小程序版 聊天室应用
99
使用 “微信开发者工具” 将 `weapp_demo` 目录打开,运行调试即可
10-
10+
1111
***Demo 线上版本正在审核中。。。***
12-
12+
1313
> Note: 服务器地址本来是使用的 `ws:chat.socket.io` ,但是为了发布上线,小程序仅支持 `wss``https`,所以我自己加了 wss 代理:`wss:chat.matong.io`,这两个地址都是可以用的。
1414
1515
# Features
1616
目前已支持
1717
* Namespace
1818
* Singleton
1919
* Reconnect
20-
20+
2121
# Build
2222
`npm run build`
2323

@@ -30,7 +30,7 @@
3030

3131
### manual
3232

33-
拷贝 build 目录的 index.js 文件到你的项目目录,并 require
33+
拷贝 dist 目录的 index.js 文件到你的项目目录,并 require
3434

3535
`const io = require('yourPath/build/index.js')`
3636

@@ -56,10 +56,9 @@ chat.on('chat', function(data) {
5656

5757
+ [gongzili](https://github.com/gongzili456)
5858
+ [C.C.](https://github.com/fanweixiao)
59-
59+
6060
# TODO
6161
+ emit buffer
6262
+ Binary support
63-
+ Room的支持
63+
+ Room 的支持
6464
+ Smaller size
65-
+ ***Ajax style api***

build/index.js

-1
This file was deleted.

0 commit comments

Comments
 (0)