icxiaoyanz
Follow
0
Followers
1
Followings
Patron
Home
Archives
有趣的小技巧
Latest
Hottest
Most Commented
让 WebSocket 通讯像 Http 一样简单
前些天因为一个需求,必须要改用 WebSocket 进行通讯(为了绕开浏览器跨域限制),但是前面使用的接口都是用 Http 的。 心里正想着可能要大改动了…… 哎嘿,怎么着,我看着之前写好的一个个请求调用方法:传参,await 等待,返回数据。 WebSocket 不也是得这样吗…
JS/TS
1 min
a month ago
Ownership of this blog data is guaranteed by blockchain and smart contracts to the creator alone.
Blockchain ID
#50142
Owner
0x35d91f55b169b2f6acfc8bf34485f26d421a0cb7
Transaction Hash
Creation 0xa94bcc22...72d39c44fa
Last Update 0x7392cadb...5de94a9a97
IPFS Address
ipfs://QmUHy7eCQcRktC5t6T2ZLDYLaciJsGKRAakh2wdPnVgtnX