V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xujiahui  ›  全部回复第 1 页 / 共 13 页
回复总数  258
1  2  3  4  5  6  7  8  9  10 ... 13  
1 天前
回复了 jason5ng32 创建的主题 程序员 获得了 GitHub 的 4096 满级星星徽章
2 天前
回复了 w4ngzhen 创建的主题 职场话题 发展焦虑:三条路怎么选?
羡慕啊,这么多可选的,感觉列出来后挺清晰的,等 1 裁了回 2 然后顺便准备考公,这后路无敌了
厉害
16 天前
回复了 LazYFire 创建的主题 程序员 能不能推荐一下自己在用的 AI 编程插件
codeium
建议看看中医,调理身体
美利达的斯特拉 93
35 天前
回复了 junwind 创建的主题 git 大家好, mac 上有哪款 git GUI 工具好用呢?
我也觉得 jetbrains 的 git 最好用,换了 vscode 后只能命令行跟插件混着勉强用了
41 天前
回复了 Int100 创建的主题 软件 不用密码记录器,实在顶不住了
chrome 自带
我是用的鼠须管
75 天前
回复了 lekai63 创建的主题 淘宝 一次淘工厂被忽悠下单的经历
已经好几年没用淘宝了,基本都是 jd 和 pdd
你看的中医诊断说法是什么呢
119 天前
回复了 chensuiyi 创建的主题 程序员 前端之虎陈随易 2023 年终回顾与总结
太强了
126 天前
回复了 toubi 创建的主题 职场话题 程序员如何从公司上班转型
126 天前
回复了 582217 创建的主题 问与答 求推荐高质量的梯
@heelerdeer #158 嗯,最近是有点,不知道啥情况,稳定的节点少了好多,我就在几个能用的之间切一切🤣
自己泡茶喝是比白开水更好地,最好是性温或性平的,如红茶、乌龙茶这种
vim
export interface UseWebSocketReturn<T> {
/**
* Reference to the latest data received via the websocket,
* can be watched to respond to incoming messages
*/
data: Ref<T | null>

/**
* The current websocket status, can be only one of:
* 'OPEN', 'CONNECTING', 'CLOSED'
*/
status: Ref<WebSocketStatus>

/**
* Closes the websocket connection gracefully.
*/
close: WebSocket['close']

/**
* Reopen the websocket connection.
* If there the current one is active, will close it before opening a new one.
*/
open: Fn

/**
* Sends data through the websocket connection.
*
* @param data
* @param useBuffer when the socket is not yet open, store the data into the buffer and sent them one connected. Default to true.
*/
send: (data: string | ArrayBuffer | Blob, useBuffer?: boolean) => boolean

/**
* Reference to the WebSocket instance.
*/
ws: Ref<WebSocket | undefined>
}
文档不是写的挺清楚吗
1  2  3  4  5  6  7  8  9  10 ... 13  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2941 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 15:10 · PVG 23:10 · LAX 08:10 · JFK 11:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.