📜  websocket 和 socket 之间的区别 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:56.542000             🧑  作者: Mango

代码示例1
WebSockets typically run from browsers connecting to Application Server over a protocol similar to HTTP that runs over TCP/IP. So they are primarily for Web Applications that require a permanent connection to its server. On the other hand, plain sockets are more powerful and generic.