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

推荐使用gzip #10

Open
simon300000 opened this issue Aug 21, 2019 · 1 comment
Open

推荐使用gzip #10

simon300000 opened this issue Aug 21, 2019 · 1 comment

Comments

@simon300000
Copy link

simon300000 commented Aug 21, 2019

把握手的protoVer改成2
然后node使用zlib的inflate,浏览器使用pako
(或者都使用pako

example inflateRaw: https://github.com/simon300000/bilibili-live-ws/blob/master/src/buffer.js#L3
example pako: 3Shain/Comen#50

@simon300000 simon300000 changed the title 使用gzipprotoVer:2 使用gzip Aug 21, 2019
@simon300000 simon300000 changed the title 使用gzip 推荐使用gzip Aug 21, 2019
@simon300000
Copy link
Author

我本来想直接发Pull request的
但是代码量实在是太多了
于是发issue

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

1 participant