简体   繁体   English

nodejs中socket.io中的socketIOClient和webSocket有什么区别?

[英]What's the difference between socketIOClient and webSocket in socket.io in nodejs?

I have built a socket between React and nodejs .我在Reactnodejs之间建立了一个socket I am using socketIOClient all the time on my react but I just found that there is another component called webSocket from socket.io-client .我一直在使用socketIOClient进行react ,但我刚刚发现socket.io-client中还有另一个名为webSocket的组件。 I cannot find much information from official guide.我无法从官方指南中找到太多信息。 What's the difference between them?他们之间有什么区别? Thanks谢谢

socket.io have difference transport methods. socket.io 有不同的传输方式。 websocket is one of them. websocket就是其中之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM