简体   繁体   中英

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

I have built a socket between React and nodejs . 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 . I cannot find much information from official guide. What's the difference between them? Thanks

socket.io have difference transport methods. websocket is one of them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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