1 Star 0 Fork 0

yingside/websocket_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SocketIO的消息事件的处理.dio 8.20 KB
一键复制 编辑 原始数据 按行查看 历史
yingside 提交于 2023-01-04 13:40 . websocket
<mxfile host="65bd71144e">
<diagram id="WrQgWECL_E6vS5V0KmN9" name="第 1 页">
<mxGraphModel dx="524" dy="447" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="8" value="" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=15;fillColor=#ffcccc;strokeColor=#36393d;" vertex="1" parent="1">
<mxGeometry x="410" y="200" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="2" value="服务器" style="rounded=1;whiteSpace=wrap;html=1;sketch=1;fillColor=#a20025;fontColor=#ffffff;strokeColor=#FFFFFF;" vertex="1" parent="1">
<mxGeometry x="340" y="70" width="120" height="50" as="geometry"/>
</mxCell>
<mxCell id="3" value="客户端" style="rounded=1;whiteSpace=wrap;html=1;sketch=1;fillColor=#0050ef;fontColor=#ffffff;strokeColor=#FFFFFF;" vertex="1" parent="1">
<mxGeometry x="604" y="70" width="120" height="50" as="geometry"/>
</mxCell>
<mxCell id="4" value="" style="endArrow=open;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;sketch=1;strokeWidth=2;endFill=0;" edge="1" parent="1" source="2">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="460" y="260" as="sourcePoint"/>
<mxPoint x="400" y="440" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="5" value="" style="endArrow=open;html=1;sketch=1;strokeWidth=2;endFill=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="670" y="120" as="sourcePoint"/>
<mxPoint x="670" y="440" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="6" value="" style="endArrow=open;html=1;sketch=1;strokeWidth=2;endFill=0;strokeColor=#000000;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="415" y="220" as="sourcePoint"/>
<mxPoint x="655" y="220" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="7" value="你好" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="515" y="200" width="40" height="20" as="geometry"/>
</mxCell>
<mxCell id="11" value="" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=15;fillColor=#e3c800;strokeColor=#B09500;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="410" y="260" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="12" value="" style="endArrow=open;html=1;sketch=1;strokeWidth=2;endFill=0;strokeColor=#000000;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="415" y="280" as="sourcePoint"/>
<mxPoint x="655" y="280" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="13" value="2.4元" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="515" y="260" width="40" height="20" as="geometry"/>
</mxCell>
<mxCell id="14" value="" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=15;fillColor=#0050ef;strokeColor=#001DBC;fontColor=#ffffff;" vertex="1" parent="1">
<mxGeometry x="410" y="320" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="15" value="" style="endArrow=open;html=1;sketch=1;strokeWidth=2;endFill=0;strokeColor=#FFFFFF;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="415" y="340" as="sourcePoint"/>
<mxPoint x="655" y="340" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="16" value="午间新闻" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#FFFFFF;" vertex="1" parent="1">
<mxGeometry x="505" y="320" width="60" height="20" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=15;fillColor=#e3c800;strokeColor=#B09500;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="410" y="380" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="18" value="" style="endArrow=open;html=1;sketch=1;strokeWidth=2;endFill=0;strokeColor=#000000;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="415" y="400" as="sourcePoint"/>
<mxPoint x="655" y="400" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="19" value="工商银行股价" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="490" y="380" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="20" value="监听成员更新事件" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=12;fontColor=#FFFFFF;strokeColor=#FFFFFF;" vertex="1" parent="1">
<mxGeometry x="250" y="130" width="120" height="20" as="geometry"/>
</mxCell>
<mxCell id="21" value="" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=15;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="410" y="140" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="22" value="" style="endArrow=open;html=1;sketch=1;strokeWidth=2;endFill=0;strokeColor=#FFFFFF;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="415" y="160" as="sourcePoint"/>
<mxPoint x="655" y="160" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="23" value="张三、李四、王五登录" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#FFFFFF;" vertex="1" parent="1">
<mxGeometry x="465" y="140" width="140" height="20" as="geometry"/>
</mxCell>
<mxCell id="24" value="监听聊天消息事件" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=12;strokeColor=#ae4132;fillColor=#fad9d5;fontColor=#000000;" vertex="1" parent="1">
<mxGeometry x="250" y="160" width="120" height="20" as="geometry"/>
</mxCell>
<mxCell id="25" value="监听新闻推送事件" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=12;fontColor=#ffffff;strokeColor=#001DBC;fillColor=#0050ef;" vertex="1" parent="1">
<mxGeometry x="250" y="190" width="120" height="20" as="geometry"/>
</mxCell>
<mxCell id="26" value="监听股价变动事件" style="rounded=1;whiteSpace=wrap;html=1;sketch=0;fontSize=12;fontColor=#000000;strokeColor=#B09500;fillColor=#e3c800;" vertex="1" parent="1">
<mxGeometry x="250" y="220" width="120" height="20" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yingside/websocket_demo.git
[email protected]:yingside/websocket_demo.git
yingside
websocket_demo
websocket_demo
master

搜索帮助