Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
Advertisement
V2EX
›
Node.js
想问一下 sockt io 怎么能不发送自己,刚刚自己发送出去的内容.
kelvinli
·
Aug 22, 2013
· 4199 views
This topic created in 4642 days ago, the information mentioned may be changed or developed.
发送
sockt
io
5 replies
•
1970-01-01 08:00:00 +08:00
1
sogood
Aug 22, 2013
cache it and then compare it.
2
kelvinli
OP
Aug 23, 2013
@
sogood
socket.broadcast.emit('message',obj);找到了 不用那么麻烦 ....
3
sogood
Aug 23, 2013
@
kelvinli
这个跟你的问题有任何关系么?你这个是广播。你的问题是避免重复发送一样的东西。
4
tokki
Aug 23, 2013
看头像是同事!!!!!
5
kelvinli
OP
Aug 23, 2013
@
sogood
对啊 这个广播不会再发送自己一次,已经避免重复了
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
4873 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 49ms ·
UTC 09:45
·
PVG 17:45
·
LAX 02:45
·
JFK 05:45
♥ Do have faith in what you're doing.
❯