Guide on using the socket #4617
-
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are two main differences here
Clients vs ServerThe difference here is almost the same difference between a webserver and a web-browser. The server will be up, bound to a host and port, where the client can connect to. Socket vs WebSocketRaw sockets over TCP/UPD/Unix are very low-level and doesn't provides some protocol guarantees like WebSocket. Another tip: refer to wiki.swoole.com for the official docs (right-click then Translate to English).
|
Beta Was this translation helpful? Give feedback.
There are two main differences here
Clients vs Server
The difference here is almost the same difference between a webserver and a web-browser. The server will be up, bound to a host and port, where the client can connect to.
Socket vs WebSocket
Raw sockets over TCP/UPD/Unix are very low-level and doesn't provides some protocol guarantees like WebSocket.
WebSocket is the one where you can access from a web-browser.
Another tip: refer to wiki.swoole.com for the official docs (right-click then Translate to English).