{"id":1736,"date":"2025-01-02T22:20:52","date_gmt":"2025-01-02T14:20:52","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1736"},"modified":"2025-01-02T22:20:52","modified_gmt":"2025-01-02T14:20:52","slug":"jmpp-%e8%ae%a9-xmpp-%e5%8d%8f%e8%ae%ae%e8%80%81%e6%a0%91%e5%bc%80%e6%96%b0%e8%8a%b1","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1736","title":{"rendered":"JMPP \u8ba9 XMPP \u534f\u8bae\u8001\u6811\u5f00\u65b0\u82b1"},"content":{"rendered":"<p>XMPP \u662f\u82e5\u5e72\u5e74\u524d\u6d41\u884c\u7684\u5373\u65f6\u901a\u4fe1 IM \u534f\u8bae, \u636e\u8bf4\u8d77\u521d\u7684 QQ \u5c31\u91c7\u7528\u4e86\u8fd9\u4e2a\u534f\u8bae, \u6211\u591a\u5e74\u4ee5\u524d\u4e5f\u7528\u8fc7\u5b83\u5b9e\u73b0\u8fc7\u591a\u4eba\u804a\u5929, \u7c7b\u4f3c\u4eca\u5929\u7684\u5fae\u4fe1\u7fa4, \u65f6\u81f3\u4eca\u65e5, XMPP \u7531\u4e8e\u91c7\u7528\u4e86 XML \u8fd9\u4e2a\u5197\u957f\u7684\u683c\u5f0f, \u65e5\u8d8b\u5f0f\u5fae, \u6211\u4ee5\u524d\u5c31\u60f3\u8fc7\u7528 JSON \u6765\u66ff\u6362 XMPP \u4e2d\u7684 XML \u683c\u5f0f, \u59d1\u4e14\u53eb\u5b83 JMPP(Json Messaging and Presence Protocol) \u5427\u3002<\/p>\n<h3>XMPP \u534f\u8bae\u57fa\u7840\u77e5\u8bc6<\/h3>\n<h4>XMPP \u7684\u6838\u5fc3\u6982\u5ff5<\/h4>\n<ol>\n<li><strong>\u6d88\u606f\uff08Message\uff09<\/strong>\uff1a\u7528\u4e8e\u4f20\u9012\u5373\u65f6\u6d88\u606f\u3002<\/li>\n<li><strong>\u72b6\u6001\uff08Presence\uff09<\/strong>\uff1a\u7528\u6237\u5728\u7ebf\u72b6\u6001\uff08\u4f8b\u5982\u5728\u7ebf\u3001\u79bb\u7ebf\u3001\u5fd9\u788c\uff09\u3002<\/li>\n<li><strong>\u4fe1\u606f\u67e5\u8be2\uff08IQ\uff09<\/strong>\uff1a\u5b9e\u73b0\u8bf7\u6c42-\u54cd\u5e94\u6a21\u5f0f\uff0c\u7528\u4e8e\u529f\u80fd\u6269\u5c55\u3002<\/li>\n<li><strong>Jabber ID\uff08JID\uff09<\/strong>\uff1a\u552f\u4e00\u6807\u8bc6\u7528\u6237\u7684\u5730\u5740\uff0c\u7c7b\u4f3c\u4e8e email \u5730\u5740\uff0c\u4f8b\u5982 <code>user@domain\/resource<\/code>\u3002<\/li>\n<\/ol>\n<h4>XMPP \u7684\u901a\u4fe1\u6a21\u578b<\/h4>\n<p>XMPP \u4f7f\u7528\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u67b6\u6784\uff0c\u901a\u4fe1\u8fc7\u7a0b\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\u5ba2\u6237\u7aef\u901a\u8fc7 TCP \u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002<\/li>\n<li>\u4f7f\u7528 TLS \u52a0\u5bc6\u8fde\u63a5\u3002<\/li>\n<li>\u901a\u8fc7 SASL \u5b8c\u6210\u8eab\u4efd\u9a8c\u8bc1\u3002<\/li>\n<li>\u4ea4\u6362 XML \u6d88\u606f\u3002<\/li>\n<\/ol>\n<h4>\u591a\u7528\u6237\u804a\u5929\uff08MUC\uff09\u89c4\u8303\u7b80\u4ecb<\/h4>\n<p>XMPP \u7684 MUC\uff08Multi-User Chat\uff09\u662f\u652f\u6301\u591a\u4eba\u804a\u5929\u5ba4\u7684\u6269\u5c55\u534f\u8bae\uff0c\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u548c\u52a0\u5165\u804a\u5929\u5ba4<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u521b\u5efa\u804a\u5929\u5ba4\u6216\u52a0\u5165\u73b0\u6709\u804a\u5929\u5ba4\u3002<\/li>\n<li><strong>\u53d1\u9001\u548c\u63a5\u6536\u6d88\u606f<\/strong>\uff1a\u804a\u5929\u5ba4\u4e2d\u7684\u6d88\u606f\u4f1a\u5e7f\u64ad\u7ed9\u6240\u6709\u6210\u5458\u3002<\/li>\n<li><strong>\u7528\u6237\u72b6\u6001\u901a\u77e5<\/strong>\uff1a\u901a\u77e5\u6210\u5458\u52a0\u5165\u3001\u79bb\u5f00\u6216\u66f4\u6539\u72b6\u6001\u3002<\/li>\n<li><strong>\u6743\u9650\u7ba1\u7406<\/strong>\uff1a\u652f\u6301\u8bbe\u7f6e\u7ba1\u7406\u5458\u3001\u4e3b\u6301\u4eba\u7b49\u89d2\u8272\u3002<\/li>\n<\/ol>\n<p>MUC \u7684 XML \u6d88\u606f\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-xml\">&lt;message to=&#039;room1@muc.example.com&#039; from=&#039;user1@example.com&#039;&gt;\n  &lt;body&gt;Hello, everyone!&lt;\/body&gt;\n&lt;\/message&gt;<\/code><\/pre>\n<h3>XMPP \u548c XML \u7684\u4f18\u7f3a\u70b9<\/h3>\n<h4>XMPP \u7684\u4f18\u70b9<\/h4>\n<ol>\n<li><strong>\u5f00\u653e\u6807\u51c6<\/strong>\uff1aXMPP \u57fa\u4e8e\u5f00\u653e\u6807\u51c6 RFC \u6587\u6863\uff0c\u4fbf\u4e8e\u5f00\u53d1\u8005\u5b9e\u73b0\u548c\u6269\u5c55\u3002<\/li>\n<li><strong>\u5b9e\u65f6\u901a\u4fe1<\/strong>\uff1a\u652f\u6301\u4f4e\u5ef6\u8fdf\u7684\u6d88\u606f\u4f20\u9012\uff0c\u7279\u522b\u9002\u5408\u5373\u65f6\u901a\u4fe1\u573a\u666f\u3002<\/li>\n<li><strong>\u53ef\u6269\u5c55\u6027<\/strong>\uff1aXMPP \u534f\u8bae\u901a\u8fc7\u547d\u540d\u7a7a\u95f4\u548c\u6269\u5c55 XEP\uff08XMPP Extension Protocols\uff09\u652f\u6301\u591a\u79cd\u5e94\u7528\u573a\u666f\u3002<\/li>\n<li><strong>\u6210\u719f\u7684\u751f\u6001\u7cfb\u7edf<\/strong>\uff1a\u4f17\u591a\u5f00\u6e90\u5b9e\u73b0\u548c\u793e\u533a\u652f\u6301\u3002<\/li>\n<\/ol>\n<h4>XMPP \u7684\u7f3a\u70b9<\/h4>\n<ol>\n<li><strong>XML \u7684\u5197\u957f\u6027<\/strong>\uff1aXML \u683c\u5f0f\u7ed3\u6784\u590d\u6742\uff0c\u6570\u636e\u5197\u957f\uff0c\u89e3\u6790\u901f\u5ea6\u76f8\u5bf9\u8f83\u6162\u3002<\/li>\n<li><strong>\u5e26\u5bbd\u5360\u7528\u9ad8<\/strong>\uff1a\u76f8\u6bd4 JSON\uff0cXML \u6d88\u8017\u66f4\u591a\u5e26\u5bbd\u3002<\/li>\n<li><strong>\u73b0\u4ee3\u6027\u4e0d\u8db3<\/strong>\uff1a\u968f\u7740 RESTful \u548c gRPC \u7b49\u534f\u8bae\u7684\u6d41\u884c\uff0cXMPP \u663e\u5f97\u7b28\u91cd\u3002<\/li>\n<\/ol>\n<h4>XML \u7684\u4f18\u70b9<\/h4>\n<ol>\n<li><strong>\u7ed3\u6784\u5316\u5f3a<\/strong>\uff1a\u901a\u8fc7\u6807\u7b7e\u548c\u5c5e\u6027\u63d0\u4f9b\u4e25\u683c\u7684\u5c42\u6b21\u7ed3\u6784\u3002<\/li>\n<li><strong>\u53ef\u9a8c\u8bc1\u6027<\/strong>\uff1a\u652f\u6301\u901a\u8fc7 DTD \u548c Schema \u8fdb\u884c\u683c\u5f0f\u9a8c\u8bc1\u3002<\/li>\n<li><strong>\u53ef\u8bfb\u6027<\/strong>\uff1a\u4eba\u7c7b\u53ef\u8bfb\uff08\u5c3d\u7ba1\u8f83\u7e41\u7410\uff09\u3002<\/li>\n<\/ol>\n<h4>XML \u7684\u7f3a\u70b9<\/h4>\n<ol>\n<li><strong>\u683c\u5f0f\u5197\u957f<\/strong>\uff1a\u6807\u7b7e\u91cd\u590d\u5bfc\u81f4\u4f20\u8f93\u6570\u636e\u91cf\u5927\u3002<\/li>\n<li><strong>\u89e3\u6790\u590d\u6742<\/strong>\uff1a\u76f8\u6bd4 JSON\uff0c\u9700\u8981\u66f4\u590d\u6742\u7684\u89e3\u6790\u5668\u3002<\/li>\n<li><strong>\u73b0\u4ee3\u5f00\u53d1\u4e0d\u53cb\u597d<\/strong>\uff1a\u4e0e\u73b0\u4ee3\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u6d41\u884c\u5de5\u5177\u94fe\u6574\u5408\u8f83\u5dee\u3002<\/li>\n<\/ol>\n<h3>\u7528 JSON \u66ff\u6362 XML \u7684\u7406\u7531<\/h3>\n<p>JSON \u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c\u4e0e XML \u76f8\u6bd4\uff0c\u5b83\u5177\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<ol>\n<li><strong>\u7b80\u6d01<\/strong>\uff1a\u6570\u636e\u8868\u793a\u66f4\u52a0\u7d27\u51d1\uff0c\u51cf\u5c11\u5197\u4f59\u3002<\/li>\n<li><strong>\u89e3\u6790\u5feb\u901f<\/strong>\uff1a\u73b0\u4ee3\u6d4f\u89c8\u5668\u548c\u8bed\u8a00\u5e93\u5bf9 JSON \u7684\u89e3\u6790\u901f\u5ea6\u5feb\u3002<\/li>\n<li><strong>\u73b0\u4ee3\u5316<\/strong>\uff1a\u4e0e\u73b0\u4ee3\u5f00\u53d1\u5de5\u5177\u94fe\u9ad8\u5ea6\u5951\u5408\u3002<\/li>\n<li><strong>\u5e26\u5bbd\u6548\u7387<\/strong>\uff1a\u6570\u636e\u91cf\u5c0f\uff0c\u66f4\u9002\u5408\u79fb\u52a8\u8bbe\u5907\u548c\u4f4e\u5e26\u5bbd\u73af\u5883\u3002<\/li>\n<\/ol>\n<p>\u57fa\u4e8e\u4ee5\u4e0a\u539f\u56e0\uff0c\u7528 JSON \u66ff\u6362 XMPP \u4e2d\u7684 XML \u683c\u5f0f\u662f\u4e00\u79cd\u5408\u7406\u7684\u6539\u8fdb\uff0c\u6211\u4eec\u5c06\u5176\u547d\u540d\u4e3a JMPP\uff08Json Messaging and Presence Protocol\uff09\u3002<\/p>\n<h3>JMPP \u534f\u8bae\u7b80\u4ecb<\/h3>\n<p>JMPP \u7ee7\u627f\u4e86 XMPP \u7684\u6838\u5fc3\u601d\u60f3\uff1a\u5373\u65f6\u6d88\u606f\u548c\u72b6\u6001\u5b58\u5728\u901a\u77e5\uff0c\u540c\u65f6\u4ee5 JSON \u66ff\u4ee3 XML \u4f5c\u4e3a\u6570\u636e\u8868\u793a\u5f62\u5f0f\u3002\u4ee5\u4e0b\u662f JMPP \u7684\u57fa\u672c\u7279\u6027\uff1a<\/p>\n<ol>\n<li><strong>\u57fa\u4e8e WebSocket<\/strong>\uff1a\u5229\u7528 WebSocket \u63d0\u4f9b\u7684\u53cc\u5411\u901a\u4fe1\u80fd\u529b\u3002<\/li>\n<li><strong>\u8f7b\u91cf\u5316\u6d88\u606f\u7ed3\u6784<\/strong>\uff1a\u6240\u6709\u6d88\u606f\u5747\u4ee5 JSON \u683c\u5f0f\u4f20\u8f93\uff0c\u51cf\u5c11\u6570\u636e\u5197\u4f59\u3002<\/li>\n<li><strong>\u517c\u5bb9\u6027<\/strong>\uff1a\u4fdd\u7559 XMPP \u7684\u57fa\u672c\u7ed3\u6784\uff0c\u5982\u6d88\u606f\uff08message\uff09\u3001\u72b6\u6001\uff08presence\uff09\u3001\u67e5\u8be2\uff08iq\uff09\uff0c\u4f46\u7b80\u5316\u8868\u793a\u3002<\/li>\n<\/ol>\n<p>JMPP \u6d88\u606f\u7ed3\u6784\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;type&quot;: &quot;message&quot;,\n  &quot;from&quot;: &quot;user1@example.com&quot;,\n  &quot;to&quot;: &quot;user2@example.com&quot;,\n  &quot;body&quot;: &quot;Hello, how are you?&quot;,\n  &quot;timestamp&quot;: &quot;2025-01-02T10:00:00Z&quot;\n}<\/code><\/pre>\n<h3>\u4f7f\u7528 JMPP \u5b9e\u73b0\u591a\u7528\u6237\u804a\u5929\uff08MUC\uff09<\/h3>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u7c7b\u4f3c XMPP MUC\uff08Multi-User Chat\uff0c\u591a\u7528\u6237\u804a\u5929\uff09\u7684\u529f\u80fd\uff0cJMPP \u53ef\u4ee5\u5b9a\u4e49\u4ee5\u4e0b\u6d88\u606f\u7c7b\u578b\uff1a<\/p>\n<ul>\n<li><strong>join<\/strong>: \u7528\u6237\u52a0\u5165\u804a\u5929\u5ba4\u3002<\/li>\n<li><strong>leave<\/strong>: \u7528\u6237\u79bb\u5f00\u804a\u5929\u5ba4\u3002<\/li>\n<li><strong>message<\/strong>: \u7528\u6237\u53d1\u9001\u804a\u5929\u6d88\u606f\u3002<\/li>\n<li><strong>presence<\/strong>: \u7528\u6237\u72b6\u6001\u66f4\u65b0\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u662f\u6d88\u606f\u7ed3\u6784\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-json\">{\n  &quot;type&quot;: &quot;join&quot;,\n  &quot;room&quot;: &quot;room1&quot;,\n  &quot;user&quot;: &quot;user1@example.com&quot;\n}\n\n{\n  &quot;type&quot;: &quot;message&quot;,\n  &quot;room&quot;: &quot;room1&quot;,\n  &quot;from&quot;: &quot;user1@example.com&quot;,\n  &quot;body&quot;: &quot;Hello, everyone!&quot;,\n  &quot;timestamp&quot;: &quot;2025-01-02T10:05:00Z&quot;\n}<\/code><\/pre>\n<h3>\u4f7f\u7528 FastAPI \u548c WebSocket \u5b9e\u73b0 JMPP \u804a\u5929\u5ba4<\/h3>\n<h4>\u670d\u52a1\u5668\u7aef\u5b9e\u73b0<\/h4>\n<pre><code class=\"language-python\">from fastapi import FastAPI, WebSocket, WebSocketDisconnect\nfrom typing import List, Dict\nimport json\n\napp = FastAPI()\n\nclass RoomManager:\n    def __init__(self):\n        self.rooms: Dict[str, List[WebSocket]] = {}\n\n    async def connect(self, websocket: WebSocket, room: str):\n        await websocket.accept()\n        if room not in self.rooms:\n            self.rooms[room] = []\n        self.rooms[room].append(websocket)\n\n    def disconnect(self, websocket: WebSocket, room: str):\n        if room in self.rooms:\n            self.rooms[room].remove(websocket)\n            if not self.rooms[room]:\n                del self.rooms[room]\n\n    async def broadcast(self, room: str, message: dict):\n        if room in self.rooms:\n            for client in self.rooms[room]:\n                await client.send_text(json.dumps(message))\n\nroom_manager = RoomManager()\n\n@app.websocket(&quot;\/ws\/{room}\/{user}&quot;)\nasync def websocket_endpoint(websocket: WebSocket, room: str, user: str):\n    await room_manager.connect(websocket, room)\n    try:\n        join_message = {&quot;type&quot;: &quot;presence&quot;, &quot;room&quot;: room, &quot;user&quot;: user, &quot;status&quot;: &quot;joined&quot;}\n        await room_manager.broadcast(room, join_message)\n        while True:\n            data = await websocket.receive_text()\n            message = json.loads(data)\n            await room_manager.broadcast(room, message)\n    except WebSocketDisconnect:\n        leave_message = {&quot;type&quot;: &quot;presence&quot;, &quot;room&quot;: room, &quot;user&quot;: user, &quot;status&quot;: &quot;left&quot;}\n        room_manager.disconnect(websocket, room)\n        await room_manager.broadcast(room, leave_message)<\/code><\/pre>\n<h4>\u5ba2\u6237\u7aef\u5b9e\u73b0<\/h4>\n<pre><code class=\"language-python\">import asyncio\nimport websockets\nimport json\n\nasync def jmpp_client():\n    uri = &quot;ws:\/\/localhost:8000\/ws\/room1\/user1&quot;\n    async with websockets.connect(uri) as websocket:\n        # \u52a0\u5165\u804a\u5929\u5ba4\n        join_message = {&quot;type&quot;: &quot;join&quot;, &quot;room&quot;: &quot;room1&quot;, &quot;user&quot;: &quot;user1@example.com&quot;}\n        await websocket.send(json.dumps(join_message))\n\n        async def receive():\n            while True:\n                response = await websocket.recv()\n                print(f&quot;Received: {response}&quot;)\n\n        async def send():\n            while True:\n                text = input(&quot;Enter message: &quot;)\n                message = {\n                    &quot;type&quot;: &quot;message&quot;,\n                    &quot;room&quot;: &quot;room1&quot;,\n                    &quot;from&quot;: &quot;user1@example.com&quot;,\n                    &quot;body&quot;: text,\n                    &quot;timestamp&quot;: &quot;2025-01-02T10:05:00Z&quot;\n                }\n                await websocket.send(json.dumps(message))\n\n        await asyncio.gather(receive(), send())\n\nasyncio.run(jmpp_client())<\/code><\/pre>\n<h3>\u603b\u7ed3<\/h3>\n<p>JMPP \u901a\u8fc7\u7528 JSON \u66ff\u6362 XMPP \u7684 XML\uff0c\u4e0d\u4ec5\u7b80\u5316\u4e86\u6d88\u606f\u683c\u5f0f\uff0c\u8fd8\u63d0\u5347\u4e86\u6548\u7387\u3002\u7ed3\u5408 WebSocket \u548c FastAPI \u7684\u591a\u7528\u6237\u804a\u5929\u529f\u80fd\uff0cJMPP \u63d0\u4f9b\u4e86\u4e00\u79cd\u73b0\u4ee3\u5316\u3001\u8f7b\u91cf\u7ea7\u7684\u5373\u65f6\u901a\u4fe1\u534f\u8bae\u5b9e\u73b0\u65b9\u6848\uff0c\u9002\u5408\u6784\u5efa\u804a\u5929\u5ba4\u3001\u72b6\u6001\u901a\u77e5\u7b49\u573a\u666f\u3002\u672a\u6765\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u6269\u5c55\u534f\u8bae\uff0c\u652f\u6301\u66f4\u591a\u529f\u80fd\uff0c\u5982\u52a0\u5bc6\u3001\u7528\u6237\u9a8c\u8bc1\u548c\u6d88\u606f\u5386\u53f2\u5b58\u50a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>XMPP \u662f\u82e5\u5e72\u5e74\u524d\u6d41\u884c\u7684\u5373\u65f6\u901a\u4fe1 IM \u534f\u8bae, \u636e\u8bf4\u8d77\u521d\u7684 QQ \u5c31\u91c7\u7528\u4e86\u8fd9\u4e2a\u534f\u8bae, \u6211\u591a\u5e74\u4ee5\u524d\u4e5f\u7528\u8fc7\u5b83\u5b9e\u73b0\u8fc7\u591a\u4eba\u804a\u5929, \u7c7b\u4f3c\u4eca\u5929\u7684\u5fae\u4fe1\u7fa4, \u65f6\u81f3\u4eca\u65e5, XMPP \u7531\u4e8e\u91c7\u7528\u4e86 XML \u8fd9\u4e2a\u5197\u957f\u7684\u683c\u5f0f, \u65e5\u8d8b\u5f0f\u5fae, \u6211\u4ee5\u524d\u5c31\u60f3\u8fc7\u7528 JSON \u6765\u66ff\u6362 XMPP \u4e2d\u7684 XML \u683c\u5f0f, \u59d1\u4e14\u53eb\u5b83 JMPP(Json Messaging and Presence Protocol) \u5427\u3002 XMPP \u534f\u8bae\u57fa\u7840\u77e5\u8bc6 XMPP \u7684\u6838\u5fc3\u6982\u5ff5 \u6d88\u606f\uff08Message\uff09\uff1a\u7528\u4e8e\u4f20\u9012\u5373\u65f6\u6d88\u606f\u3002 \u72b6\u6001\uff08Presence\uff09\uff1a\u7528\u6237\u5728\u7ebf\u72b6\u6001\uff08\u4f8b\u5982\u5728\u7ebf\u3001\u79bb\u7ebf\u3001\u5fd9\u788c\uff09\u3002 \u4fe1\u606f\u67e5\u8be2\uff08IQ\uff09\uff1a\u5b9e\u73b0\u8bf7\u6c42-\u54cd\u5e94\u6a21\u5f0f\uff0c\u7528\u4e8e\u529f\u80fd\u6269\u5c55\u3002 Jabber ID\uff08JID\uff09\uff1a\u552f\u4e00\u6807\u8bc6\u7528\u6237\u7684\u5730\u5740\uff0c\u7c7b\u4f3c\u4e8e email \u5730\u5740\uff0c\u4f8b\u5982 user@domain\/resource\u3002 XMPP \u7684\u901a\u4fe1\u6a21\u578b XMPP \u4f7f\u7528\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u67b6\u6784\uff0c\u901a\u4fe1\u8fc7\u7a0b\u5305\u62ec\uff1a \u5ba2\u6237\u7aef\u901a\u8fc7 TCP \u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002 \u4f7f\u7528 TLS \u52a0\u5bc6\u8fde\u63a5\u3002 \u901a\u8fc7 SASL \u5b8c\u6210\u8eab\u4efd\u9a8c\u8bc1\u3002 \u4ea4\u6362 [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1736\" title=\"Permanent Link to: JMPP \u8ba9 XMPP \u534f\u8bae\u8001\u6811\u5f00\u65b0\u82b1\">&rarr;Read&nbsp;more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1736","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1736"}],"collection":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1736"}],"version-history":[{"count":1,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1736\/revisions"}],"predecessor-version":[{"id":1737,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1736\/revisions\/1737"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}