{"id":165232,"date":"2020-10-01T12:55:29","date_gmt":"2020-10-01T04:55:29","guid":{"rendered":"http:\/\/4563.org\/?p=165232"},"modified":"2020-10-01T12:55:29","modified_gmt":"2020-10-01T04:55:29","slug":"%e8%af%b7%e6%95%99%e5%a4%a7%e5%ae%b6-websocket-%e9%89%b4%e6%9d%83%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=165232","title":{"rendered":"\u8bf7\u6559\u5927\u5bb6 WebSocket \u9274\u6743\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u5927\u5bb6 WebSocket \u9274\u6743\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sdbybyd <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u76ee\u524d\u9879\u76ee\u7528 jwt \u505a http \u7684\u9274\u6743\uff0c\u4fdd\u5b58\u5728 cookie \u4e2d\uff0c\u4f46\u662f websocket \u4e0d\u80fd\u4f7f\u7528 httponly \u7684 cookie\uff0c \u770b\u4e86\u6dd8\u5b9d\u8fd8\u6709 fb \u7684\u65b9\u6848\uff0c\u90fd\u662f\u7528 url \u53c2\u6570\u5e26\u4e2a token \u6216\u8005 sessionId \u8fc7\u53bb\u540e\u7aef\uff0c \u8bf7\u6559\u4e0b\u524d\u7aef\u5982\u4f55\u83b7\u53d6\u8fd9\u4e2a\u53d1\u9001\u7684 token\uff0c\u6216\u8005 ssid\uff0c\u76f4\u63a5\u8bf7\u6c42\u540e\u53f0\uff1aGET \/token \u83b7\u53d6\u5417\uff1f\u8fd9\u6837\u662f\u5426\u5b89\u5168<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>23<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3633996\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ila <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             wss,\u6bcf\u6b21\u8bf7\u6c42\u52a0\u4e0a token                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3633997\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             websocket \u6309\u8bf4\u4e5f\u662f\u4e2a http \u4f60\u53ef\u4ee5\u5728 upgrade \u8fde\u63a5\u524d\u5224\u65ad\u597d \u4e0d\u5408\u89c4\u5c31\u7ed9\u5b83\u65ad\u5f00                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3633998\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54e6 http olny \u597d\u5427..                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3633999\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leyle <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ws \u662f\u4e2a\u957f\u8fde\u63a5\u3002\u53ef\u4ee5\u5148\u5141\u8bb8\u4efb\u4f55 client \u4e0e server \u5efa\u7acb\u8fde\u63a5\uff0c\u7136\u540e server \u5224\u65ad\u5f53\u524d\u7528\u6237\u662f\u5426\u9274\u6743\u3002<br \/>\u6b63\u5e38\u8bf7\u6c42\u4e0b\uff0cws client \u53d1\u8d77\u5bf9 server \u7684\u8fde\u63a5\u540e\uff0c\u5c31\u80fd\u591f\u4e3b\u52a8 \/\u88ab\u52a8\u7684\u53d1\u9001 token \u7ed9 server \u3002<br \/>server \u53ef\u4ee5\u5bf9\u672a\u53d1\u9001 token \u7684 client \u53d1\u9001\u8981\u6c42\u53d1\u9001 token \u7684\u201c\u6307\u4ee4\u201d\uff0c\u5982\u679c\u5728\u4e00\u4e2a X \u79d2\u5185\u6ca1\u6709\u6536\u5230 client \u53d1\u9001\u8fc7\u6765\u7684 token\uff0cserver \u5c31\u53ef\u4ee5\u4e3b\u52a8\u65ad\u5f00\u8fde\u63a5\u3002\u5982\u679c\u540c\u4e00\u4e2a client \u591a\u6b21\u53d1\u8d77\u8fde\u63a5\u4e14\u6ca1\u6709\u9274\u6743\u6210\u529f\uff0c\u5c31\u7528\u5176\u4ed6\u673a\u5236\u9650\u5236\u94fe\u63a5\u4e00\u6bb5\u65f6\u95f4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634000\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sdbybyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @leyle \u8fd9\u4e2a token \u600e\u4e48\u6765\u5462\uff0c\u91cd cookie \u63d0\u53d6\u5417\uff1f httoonly \u7684 cookie \u6ca1\u529e\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634001\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sdbybyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wd \u8fd9\u4e2a\u601d\u8def\u6709\u60f3\u8fc7 \u4e0d\u8fc7\u611f\u89c9\u8fd8\u662f\u6709\u70b9\u5947\u602a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634002\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JimmyChange <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728\u5efa\u7acb websocket \u94fe\u63a5\u7684\u8bf7\u6c42\u53ef\u4ee5\u8bfb\u53d6 cookie \u5427\uff1f\u5c31\u662f\u9700\u8981\u8fd4\u56de 101 \u7684\u90a3\u4e2a\u8bf7\u6c42\u91cc<\/p>\n<p>\u8981\u662f\u4f7f\u7528 token\uff0c\u76f4\u63a5\u63d0\u4f9b\u7ed9 api \u83b7\u53d6 token \u5c31\u597d\u4e86\u5427                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634003\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Arrowing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e2a\u601d\u8def\u4e0d\u77e5\u9053\u884c\u4e0d\u884c<br \/>\u5c31\u662f\u5ba2\u6237\u7aef\u8bf7\u6c42\u670d\u52a1\u5668\u7684\u65f6\u5019\uff0c\u5c06\u5ba2\u6237\u7aef\u7279\u5f81\u4fe1\u606f\uff08\u8bb0\u4e3a ID \uff09\u4fdd\u5b58\u4e0b\u6765\uff0c\u4fdd\u8bc1\u552f\u4e00\u6027\uff08\u8fd9\u4e2a\u5f97\u81ea\u5df1\u60f3\u6cd5\u5b50\uff09\u3002<br \/>\u5728 Redis \u91cc\uff0c\u4fdd\u5b58\u5bf9\u5e94\u7684\u72b6\u6001\u3002<br \/>\u6bcf\u6b21\u5185\u5bb9\u5230\u670d\u52a1\u5668\u5c31\u5230 Redis \u91cc\u53bb\u627e\u8fd9\u4e2a ID\uff0c\u67e5\u627e\u5bf9\u5e94\u7684\u72b6\u6001\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634004\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : momocraft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 cookie \u63db\u4e00\u500b\u4e00\u6b21\u6027 token\uff0c\u7528\u90a3\u500b token \u9023\u63a5\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634005\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sdbybyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @JimmyChange \u8fd9\u6837\u53ef\u80fd\u6709\u5b89\u5168\u95ee\u9898\uff0chttponly \u5c5e\u6027\u5c31\u662f\u4e3a\u4e86\u524d\u7aef\u65e0\u6cd5\u8bfb\u53d6 cookie \u91cc\u9762\u7684 token\uff0c\u66b4\u9732\u8fd9\u4e2a API \u611f\u89c9\u4e0d\u592a\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634006\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sdbybyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Arrowing \u4f60\u8fd9\u4e2a\u601d\u8def\u5c31\u662f jwt \u4e86\uff0c\u5173\u952e\u524d\u7aef\u5982\u4f55\u901a\u8fc7 websocket \u5427\u8fd9\u4e2a\u4e1c\u4e1c\u53d1\u7ed9\u540e\u53f0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634007\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sdbybyd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u89c9\u8fd8\u662f\u5728 beforeHandshake \u8fd9\u4e2a hook \u4e0a\u52a8\u624b\u811a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634008\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : micean <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ws \u8fde\u63a5\u7684\u65f6\u5019\u4e5f\u6709 cookie \u554a\uff0c\u8ddf httponly \u6ca1\u5173\u7cfb\u5427<br \/>\u65e2\u7136\u662f httponly\uff0c\u8bf4\u660e\u662f\u670d\u52a1\u7aef\u81ea\u5df1\u7ba1\u7406\u4ee4\u724c\uff0c\u4f46\u662f\u6362\u6210 ws \u5374\u7ba1\u7406\u4e0d\u4e86\u4e86\uff1f<br \/>\u6211\u4e0d\u592a\u660e\u767d\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634009\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yc8332 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u548c http \u4e00\u6837\u554a\u3002\u3002websocket \u672c\u6765\u5c31\u662f\u57fa\u4e8e http \u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634010\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yogogo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             token \u662f\u524d\u7aef\u8bf7\u6c42\u767b\u5165\u7684\u65f6\u5019\u540e\u7aef\u8fd4\u56de\u7684\uff0c\u7136\u540e\u524d\u7aef\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u8981\u5e26\u4e0a token\uff0cwebsocket \u4e00\u6837\u9053\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634011\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xrr2016 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b2c\u4e00\u6b21\u5efa\u7acb ws \u94fe\u63a5\u7684\u65f6\u5019\u7528\u7684\u662f\u666e\u901a\u7684 http \u534f\u8bae\uff0c\u4e4b\u540e\u624d\u662f ws                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634012\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hijoker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u767b\u9646,\u9274\u6743 http \u670d\u52a1, \u8fd4\u56de token,\u8fde\u63a5 ws,\u9700\u8981\u5e26\u4e0a\u8fd9\u4e2a token,\u540e\u7aef\u6821\u9a8c token,\u6210\u529f\u5c31\u8fde\u63a5,\u4e0d\u7136\u5c31\u65ad\u5f00                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634013\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pagepancn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yc8332 \u4e0d\u5bf9\u5427\uff0cwebsocket \u662f\u57fa\u4e8e socket \u7684\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634014\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : abersheeran <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4f60\u7684\u5ba2\u6237\u7aef\u4e86\u3002\u5982\u679c\u4f60\u5ba2\u6237\u7aef\u5305\u542b\u6807\u51c6\u6d4f\u89c8\u5668\uff0c\u90a3\u4e48\u53ea\u80fd\u8d70 url \u53c2\u6570\u7684\u8def\u5b50\u3002\u522b\u95ee\uff0c\u95ee\u5c31\u662f\u6d4f\u89c8\u5668\u6807\u51c6\u50bb\u903c\uff0c\u8fd9\u4e2a\u73a9\u610f\u4ed6\u4eec\u8ba8\u8bba\u597d\u51e0\u5e74\u4e5f\u6ca1\u4e2a\u5b9a\u8bba\uff0c\u7b49\u786e\u5b9a\u597d\u4e86\u518d\u7b49\u5b9e\u73b0\u51fa\u6765\uff0c\u4f60\u4f30\u8ba1\u90fd 35 \u5c81\u9000\u4f11\u4e86\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5ba2\u6237\u7aef\u53ea\u662f\u9700\u8981\u6ee1\u8db3\u975e\u6d4f\u89c8\u5668\uff0c\u90a3\u7b80\u5355\u4e86\uff0cwebsocket \u63e1\u624b\u7528\u7684 http \u534f\u8bae\uff0c\u4f60\u8be5\u548b\u9274\u6743\u548b\u9274\u6743\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634015\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JimmyChange <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sdbybyd \u6709\u4ec0\u4e48\u5b89\u5168\u95ee\u9898\uff1f\u53c8\u4e0d\u662f\u8ba9\u4f60\u8fd4\u56de JWT \u7684 token\uff0c\u8fd4\u56de\u4e2a\u4e00\u6b21\u6027\u9a8c\u8bc1 token \u4e0d\u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634016\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jinliming2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8ddf HttpOnly \u6709\u4ec0\u4e48\u5173\u7cfb\uff1f HttpOnly \u7684 cookie \u5728 Websocket \u8fde\u63a5\u7684\u65f6\u5019\u4e5f\u662f\u4f1a\u6b63\u5e38\u53d1\u9001\u7684\u554a\uff01<br \/>\u521a\u521a\u5728 Chrome \u548c Firefox \u4e0b\u6d4b\u8bd5\u6ca1\u6709\u95ee\u9898\uff0c\u6807\u8bb0\u4e3a HttpOnly \u7684 Cookie \u5728 Websocket \u63e1\u624b\u7684\u65f6\u5019\u90fd\u53ef\u4ee5\u6b63\u5e38\u53d1\u9001\u3002<\/p>\n<p>\u7f51\u4e0a\u641c\u4e86\u4e00\u4e0b\uff0c\u53ea\u6709 2010 \u5e74 1 \u6708\u82f9\u679c\u7684 Webkit \u5b58\u5728 bug \u5bfc\u81f4 HttpOnly Cookie \u5728 WebSocket \u4e0b\u4e0d\u53d1\u9001\uff0c\u4f46\u662f\u4e5f\u65e9\u5df2\u4fee\u590d\uff1a https:\/\/bugs.webkit.org\/show_bug.cgi?id=34289<\/p>\n<p>\u53e6\u5916\u641c\u5230\u4e00\u4e2a UC \u6d4f\u89c8\u5668\u540c\u6837\u7684\u95ee\u9898\uff1a https:\/\/stackoverflow.com\/questions\/43224033\/uc-browser-not-sending-httponly-cookie-for-websocket-calls \u4f30\u8ba1\u4e5f\u662f\u7528\u4e86\u90a3\u4e2a\u6709\u95ee\u9898\u7684\u7248\u672c\u7684 Webkit \u5185\u6838\u4ee3\u7801\u3002<br \/>\u5982\u679c\u786e\u5b9e\u8981\u8003\u8651\u8fd9\u4e9b\u4f7f\u7528\u65e7\u7248\u5e26 bug \u7684\u6d4f\u89c8\u5668\u7684\u7528\u6237\uff0c\u8fd9\u4e2a\u95ee\u9898\u4e0b\u4e5f\u7ed9\u51fa\u4e86\u53c2\u8003\u65b9\u6848\uff1a\u5728 WebSocket \u8fde\u63a5\u5efa\u7acb\u4e4b\u540e\uff0c\u82e5\u7528\u6237\u6ca1\u6709\u643a\u5e26 Cookie\uff0c\u5219\u5728 Websocket \u4e2d\u7ed9\u7528\u6237\u4e00\u4e2a\u552f\u4e00 ID\uff0c\u7528\u6237\u62ff\u5230 ID \u4e4b\u540e\u901a\u8fc7\u6b63\u5e38\u7684 HTTP \u5e26\u4e0a Cookie \u8bf7\u6c42\u4e00\u4e2a API\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5c06\u8fd9\u4e2a Websocket \u8fde\u63a5\u7684 ID \u4e0e\u7528\u6237\u7684 Cookie \u8fdb\u884c\u7ed1\u5b9a\u3002\u52a0\u4e2a\u8d85\u65f6\u81ea\u52a8\u65ad\u5f00\u8fde\u63a5\u5c31\u884c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634017\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yc8332 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pagepancn \u63e1\u624b\u8d70\u7684 http\uff0c\u53ea\u662f\u6700\u540e\u534f\u8bae\u5347\u7ea7\u800c\u5df2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3634018\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codehz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             websocket \u5efa\u8bae\u4e0d\u8981\u73a9 http \u5c42\u7684\u82b1\u6837\uff0c\u6709\u4e9b\u6d4f\u89c8\u5668\u6ca1\u505a\u597d\u5c31\u4e0d\u4f1a\u53d1<br \/>\u6211\u8fd9\u91cc\u63d0\u4f9b\u4e00\u4e2a\u601d\u8def\uff0c\u628a token \u7f16\u7801\u5230 url \u8def\u5f84\u91cc\uff0c\u77ed\u671f\u4e14\u4e00\u6b21\u6027\u7684\u90a3\u79cd\uff08<br \/>\u7136\u540e\u7528\u666e\u901a http api \u53bb\u8bf7\u6c42\u90a3\u4e2a url                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u5927\u5bb6 WebSocket \u9274\u6743&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/165232"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=165232"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/165232\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165232"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}