-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Feature websocket #14691
base: 3.x
Are you sure you want to change the base?
Feature websocket #14691
Conversation
4 similar comments
需要补充一下文档的,和 http 适配库类似:https://docs.taro.zone/docs/next/request @bigmeow 老哥帮忙一起 review 看看哈~另外这个包是单独一个插件还是和 http 插件融合比较好呢? |
|
||
export interface IOptions { | ||
/** 支持 document.cookie 和 http 设置 cookie (默认false) */ | ||
enableCookie?: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这几个配置你这里需要吗?
|
||
const START_TIME = Date.now() | ||
|
||
class Event { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
事件这里可以参考 XMLHttpRequest 直接继承 Events, 不用自己再实现一个
import { Events } from '@tarojs/runtime'
直接新开个 PR,加到 |
这个 PR 做了什么? (简要描述所做更改)
新增
Taro
运行时扩展插件, 扩展了web
开发中websocket相关的能力,让taro
可以使用 socket.io-client 等socket请求封装库。这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: