本文介绍了engine.io和socket.io有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这个问题重复,请纠正我.关于node.js,我正在使用socket.io进行从客户端应用程序到服务器应用程序的实时套接字连接.我刚刚听说了engine.io,engine.io是否可以替代socket.io?我在engine.io网站上找不到任何有用的信息

Please correct me if this question is a duplicate.Regarding node.js, I'm using socket.io for real-time socket connection from the client application to the server application.I just heard about engine.io, is engine.io a replacement for socket.io?I could not find any useful information on engine.io website

预先感谢

推荐答案

engine.io 是比socket.io低的库.

engine.io is a lower level library than socket.io.

如果需要较低级别的抽象,请使用engine.io.如果您想要Websocket抽象,请继续使用socket.io.

If you want the lower level abstraction, use engine.io. If you want a websocket abstraction, keep using socket.io.

engine.io将对您更感兴趣.

engine.io is of more interest to you if you're building a library/framework on top of socket.io.

socket.io将对您更感兴趣.

socket.io is of more interest to you if you're building an application on top of socket.io.

这篇关于engine.io和socket.io有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:13