Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想请教这个包的目的到底什么? #88

Open
qiulang opened this issue May 20, 2022 · 3 comments
Open

想请教这个包的目的到底什么? #88

qiulang opened this issue May 20, 2022 · 3 comments

Comments

@qiulang
Copy link

qiulang commented May 20, 2022

你好,我想请教一下这个包的目的到底什么?

我觉得我对socket.io 还算比较熟悉,但是我最近刚刚知道咱们这个包。我大致浏览了一下代码,但是一时没看出这个包到底是要解决什么问题(我没做过小程序开发)。

开始我以为是为了去掉一些对小程序没用东西(比如去掉 polling),让打包出来的代码更小。但是我试着打包下,发现打包出来的代码比 socket.io-client自己打包的代码还大,所以我有点糊涂了。

@gongzili456
Copy link
Member

这个项目是针对小程序环境打包的 socket.io client

@waynerQiu
Copy link

项目不错,我用到了
不过最近另一个项目需要用到1.4.8的socket.io-client,发现咱们的项目是基于3.0开发的,
请教一下能否基于1.4.8搞一个呢?

@gongzili456
Copy link
Member

最早是基于 2.0.3 做的,你可以使用项目的第一个 commit 来编译一下试试看能否兼容你的 1.4.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants