{"id":43903,"date":"2023-10-04T23:05:06","date_gmt":"2023-10-04T15:05:06","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=43903"},"modified":"2023-10-08T15:29:22","modified_gmt":"2023-10-08T07:29:22","slug":"wytdqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/43903.html","title":{"rendered":"Websocket\u4e0eTCP\u7684\u533a\u522b"},"content":{"rendered":"

  Websocket\u548cTCP\u90fd\u5c5e\u4e8e\u7f51\u7edc\u901a\u4fe1\u534f\u8bae\uff0c\u4f46\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u4e00\u4e9b\u663e\u8457\u7684\u5dee\u5f02\uff0c\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5b83\u4eec\u6709\u7740\u4e0d\u540c\u7684\u4f18\u52bf\u548c\u52a3\u52bf\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdWebsocket\u548cTCP\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u4e86\u89e3\u5b83\u4eec\u3002<\/p>\n

Websocket<\/h2>\n

  Websocket\u662f\u4e00\u79cd\u65b0\u578b\u7684\u7f51\u7edc\u534f\u8bae\uff0c\u5b83\u4f7f\u7528HTTP\u534f\u8bae\u4f5c\u4e3a\u57fa\u7840\uff0c\u4f46\u662f\u5b83\u652f\u6301\u53cc\u5411\u901a\u4fe1\uff0c\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u8fdb\u884c\u53cc\u5411\u901a\u4fe1\u3002Websocket\u4f7f\u7528\u66f4\u5c11\u7684\u5e26\u5bbd\uff0c\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5feb\u7684\u901f\u5ea6\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u597d\u5730\u5904\u7406\u5927\u91cf\u6570\u636e\uff0c\u56e0\u6b64\u5b83\u53ef\u4ee5\u5728\u5b9e\u65f6\u5e94\u7528\u7a0b\u5e8f\u4e2d\u53d1\u6325\u66f4\u5927\u7684\u4f5c\u7528\u3002<\/p>\n

  \u4f18\u52bf<\/h3>\n