{"id":19554,"date":"2025-04-19T01:57:23","date_gmt":"2025-04-18T17:57:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/19554.html"},"modified":"2025-04-19T01:57:23","modified_gmt":"2025-04-18T17:57:23","slug":"websocket-sharp%ef%bc%9a-net%e5%b9%b3%e5%8f%b0%e4%b8%8a%e7%9a%84websocket%e5%ae%a2%e6%88%b7%e7%ab%af%e4%b8%8e%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%bc%80%e6%ba%90%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/19554.html","title":{"rendered":"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93"},"content":{"rendered":"<p>\u63a8\u8350\u4e00\u4e2aC#\u5f00\u53d1\u7684&#xff0c;\u5b9e\u73b0WebSocket\u529f\u80fd\u7684\u5f00\u6e90\u9879\u76ee\u3002<\/p>\n<h2>01 \u9879\u76ee\u7b80\u4ecb<\/h2>\n<p>websocket-sharp\u63d0\u4f9b WebSocket \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5e93&#xff0c;\u57fa\u4e8e C# \u5f00\u53d1\u7684&#xff0c;\u5e76\u9075\u5faa WebSocket \u534f\u8bae\u89c4\u8303&#xff0c;\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u8f7b\u677e\u5730\u5728 .NET \u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0 WebSocket \u901a\u4fe1\u3002<\/p>\n<p>websocket-sharp \u7279\u8272\u529f\u80fd\u6709&#xff1a;<\/p>\n<p>1\u3001\u7b80\u6d01\u6613\u7528\u7684API&#xff1a;\u63d0\u4f9b\u6e05\u6670\u4e14\u76f4\u89c2\u7684API\u63a5\u53e3&#xff0c;\u65b9\u4fbf\u5f00\u53d1\u8005\u5feb\u901f\u96c6\u6210WebSocket&#xff0c;\u65e0\u8bba\u662f\u521b\u5efa WebSocket \u5ba2\u6237\u7aef\u8fd8\u662f\u670d\u52a1\u5668&#xff0c;\u90fd\u53ef\u4ee5\u901a\u8fc7\u51e0\u884c\u4ee3\u7801\u5feb\u901f\u5b9e\u73b0\u3002<\/p>\n<p>2\u3001\u5b8c\u6574\u7684WebSocket\u534f\u8bae\u652f\u6301&#xff1a;\u9075\u5faa WebSocket \u534f\u8bae\u89c4\u8303&#xff0c;\u652f\u6301 RFC 6455 \u4e2d\u5b9a\u4e49\u7684\u6240\u6709\u6838\u5fc3\u529f\u80fd&#xff0c;\u5305\u62ec\u6587\u672c\u548c\u4e8c\u8fdb\u5236\u6d88\u606f\u4f20\u8f93\u3001Ping\/Pong \u5fc3\u8df3\u673a\u5236\u3001\u6269\u5c55\u548c\u5b50\u534f\u8bae\u7b49\u3002<\/p>\n<p>3\u3001\u4e8b\u4ef6\u9a71\u52a8\u7684\u6d88\u606f\u5904\u7406&#xff1a;\u91c7\u7528\u4e8b\u4ef6\u9a71\u52a8\u7684\u65b9\u5f0f&#xff0c;\u5b9e\u73b0\u54cd\u5e94\u8fde\u63a5\u6253\u5f00\u3001\u6d88\u606f\u63a5\u6536\u3001\u8fde\u63a5\u5173\u95ed\u7b49\u4e8b\u4ef6&#xff0c;\u5b9e\u73b0\u5f02\u6b65\u3001\u975e\u963b\u585e\u7684\u901a\u4fe1\u6a21\u5f0f\u3002<\/p>\n<p>4\u3001\u7075\u6d3b\u7684\u914d\u7f6e\u9009\u9879&#xff1a;\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u914d\u7f6e\u9009\u9879&#xff0c;\u65b9\u4fbf\u5f00\u53d1\u8005\u6839\u636e\u9879\u76ee\u9700\u6c42\u81ea\u5b9a\u4e49\u884c\u4e3a\u3002\u5982&#xff1a;\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\u3001SSL\/TLS \u52a0\u5bc6\u9009\u9879\u3001\u81ea\u5b9a\u4e49\u6807\u5934\u7b49\u3002<\/p>\n<p>5\u3001\u9ad8\u6027\u80fd&#xff1a;\u652f\u6301\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b&#xff0c;\u53ef\u4ee5\u6709\u6548\u5730\u5229\u7528\u7cfb\u7edf\u8d44\u6e90&#xff0c;\u5e76\u652f\u6301\u5904\u7406\u5927\u91cf\u5e76\u53d1\u8fde\u63a5\u3002<\/p>\n<h2>02 \u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>1\u3001\u5b89\u88c5\u4f9d\u8d56\u5e93<\/p>\n<p>Install-Package WebSocketSharp -Pre<\/p>\n<p>2\u3001\u5ba2\u6237\u7aef<\/p>\n<p>using System;<br \/>\nusing WebSocketSharp;  <\/p>\n<p>namespace Example<br \/>\n{<br \/>\n  public class Program<br \/>\n  {<br \/>\n    public static void Main (string[] args)<br \/>\n    {<br \/>\n      \/\/ \u521b\u5efa\u4e00\u4e2aWebSocket\u5b9e\u4f8b&#xff0c;\u5e76\u6307\u5b9a\u5176URL<br \/>\n      using (var ws &#061; new WebSocket (&#034;ws:\/\/xx.far\/Laputa&#034;))<br \/>\n      {<br \/>\n        \/\/ \u4e3aws\u5bf9\u8c61\u7684OnMessage\u4e8b\u4ef6\u6dfb\u52a0\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f<br \/>\n        ws.OnMessage &#043;&#061; (sender, e) &#061;&gt;<br \/>\n                          Console.WriteLine (&#034;Laputa says: &#034; &#043; e.Data);  <\/p>\n<p>        \/\/ \u5efa\u7acb\u4e0eWebSocket\u670d\u52a1\u5668\u7684\u8fde\u63a5\u3002<br \/>\n        ws.Connect ();  <\/p>\n<p>        \/\/ \u53d1\u9001\u5b57\u7b26\u4e32\u5230WebSocket\u670d\u52a1\u5668\u3002<br \/>\n        ws.Send (&#034;BALUS&#034;);  <\/p>\n<p>        Console.ReadKey (true);<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>3\u3001\u670d\u52a1\u7aef<\/p>\n<p>using System;<br \/>\nusing WebSocketSharp;  <\/p>\n<p>using WebSocketSharp.Server;  <\/p>\n<p>namespace Example<br \/>\n{<br \/>\n  public class Laputa : WebSocketBehavior<br \/>\n  {<br \/>\n    \/\/ \u91cd\u5199OnMessage\u65b9\u6cd5<br \/>\n    protected override void OnMessage (MessageEventArgs e)<br \/>\n    {<br \/>\n      var msg &#061; e.Data &#061;&#061; &#034;BALUS&#034;<br \/>\n                ? &#034;Are you kidding?&#034;<br \/>\n                : &#034;I&#039;m not available now.&#034;;  <\/p>\n<p>      \/\/ \u53d1\u9001\u56de\u590d\u6d88\u606f\u7ed9\u5ba2\u6237\u7aef<br \/>\n      Send (msg);<br \/>\n    }<br \/>\n  }  <\/p>\n<p>  public class Program<br \/>\n  {<br \/>\n    public static void Main (string[] args)<br \/>\n    {<br \/>\n      \/\/ \u521b\u5efa\u4e00\u4e2aWebSocketServer\u5b9e\u4f8b&#xff0c;\u5e76\u6307\u5b9a\u5176\u76d1\u542c\u7684WebSocket URL<br \/>\n      var wssv &#061; new WebSocketServer (&#034;ws:\/\/dragonsnest.far&#034;);  <\/p>\n<p>      \/\/ \u6dfb\u52a0\u4e00\u4e2aWebSocket\u670d\u52a1<br \/>\n      wssv.AddWebSocketService&lt;Laputa&gt; (&#034;\/Laputa&#034;);  <\/p>\n<p>      \/\/ \u542f\u52a8WebSocket\u670d\u52a1\u5668<br \/>\n      wssv.Start ();  <\/p>\n<p>      Console.ReadKey (true);  <\/p>\n<p>      \/\/ \u505c\u6b62WebSocket\u670d\u52a1\u5668\u3002<br \/>\n      wssv.Stop ();<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h2>03 \u9879\u76ee\u5730\u5740<\/h2>\n<p>https:\/\/github.com\/sta\/websocket-sharp<\/p>\n<p>&#8211; End &#8211;<\/p>\n<p>\u66f4\u591a\u5f00\u6e90\u9879\u76ee&#xff1a; https:\/\/github.com\/bianchenglequ\/NetCodeTop<\/p>\n<p>\u6211\u662f\u7f16\u7a0b\u4e50\u8da3&#xff0c;\u4e00\u4e2a.Net\u5f00\u53d1\u7ecf\u9a8c\u8001\u7a0b\u5e8f\u5458&#xff0c;\u6b22\u8fce\u201c\u5173\u6ce8\u201d\u6211&#xff0c;\u6bcf\u5929\u4e3a\u4f60\u5206\u4eab\u5f00\u6e90\u9879\u76ee\u548c\u7f16\u7a0b\u77e5\u8bc6\u3002 \u4e5f\u6b22\u8fce\u52a0\u5165\u3010.Net\u6280\u672f\u7f16\u7a0b\u4ea4\u6d41\u793e\u533a\u3011&#xff0c;\u548c\u5927\u5bb6\u5171\u540c\u5b66\u4e60\u4ea4\u6d41&#xff01;&#xff0c; \u70b9\u51fb\u52a0\u5165&#xff1a;https:\/\/bbs.csdn.net\/topics\/613465368<\/p>\n<p>\u63a8\u8350\u9605\u8bfb<\/p>\n<p>C#\u7684\u5b66\u4e60\u65b9\u6cd5\u548c\u601d\u8def&#xff0c;\u5168\u90e8\u6574\u7406\u5728\u8fd9\u4e86&#xff01;<\/p>\n<p>\u76d8\u70b98\u4e2aExcel\u7684.Net\u5f00\u6e90\u5e93<\/p>\n<p>\u76d8\u70b95\u4e2aPDF\u514d\u8d39\u7684.Net\u5f00\u6e90\u5e93<\/p>\n<p>\u76d8\u70b95\u4e2a\u57fa\u4e8eSkiaSharp\u5f00\u53d1\u7684.Net\u5f00\u6e90\u56fe\u5f62\u9879\u76ee<\/p>\n<p>\u76d8\u70b93\u4e2a.Net\u89e3\u538b\u7f29\u5f00\u6e90\u5e93<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb798\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002websocket-sharp\u63d0\u4f9b WebSocket \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5e93\uff0c\u57fa\u4e8e C# \u5f00\u53d1\u7684\uff0c\u5e76\u9075\u5faa WebSocket \u534f\u8bae\u89c4\u8303\uff0c\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u8f7b\u677e\u5730\u5728 .NET \u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0 WebSocket \u901a\u4fe1\u30021\u3001\u7b80\u6d01\u6613\u7528\u7684API\uff1a\u63d0\u4f9b\u6e05\u6670\u4e14\u76f4\u89c2\u7684API\u63a5\u53e3\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u5feb\u901f\u96c6\u6210WebSocket\uff0c\u65e0\u8bba\u662f\u521b\u5efa WebSocket \u5ba2\u6237\u7aef\u8fd8\u662f\u670d\u52a1\u5668\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u51e0\u884c\u4ee3\u7801\u5feb\u901f\u5b9e\u73b0\u3002_net websocketsharp.websocket<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[895,1511,947,43],"topic":[],"class_list":["post-19554","post","type-post","status-publish","format-standard","hentry","category-server","tag-net","tag-netcore100","tag-websocket","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/19554.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb798\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002websocket-sharp\u63d0\u4f9b WebSocket \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5e93\uff0c\u57fa\u4e8e C# \u5f00\u53d1\u7684\uff0c\u5e76\u9075\u5faa WebSocket \u534f\u8bae\u89c4\u8303\uff0c\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u8f7b\u677e\u5730\u5728 .NET \u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0 WebSocket \u901a\u4fe1\u30021\u3001\u7b80\u6d01\u6613\u7528\u7684API\uff1a\u63d0\u4f9b\u6e05\u6670\u4e14\u76f4\u89c2\u7684API\u63a5\u53e3\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u5feb\u901f\u96c6\u6210WebSocket\uff0c\u65e0\u8bba\u662f\u521b\u5efa WebSocket \u5ba2\u6237\u7aef\u8fd8\u662f\u670d\u52a1\u5668\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u51e0\u884c\u4ee3\u7801\u5feb\u901f\u5b9e\u73b0\u3002_net websocketsharp.websocket\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/19554.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T17:57:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/19554.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/19554.html\",\"name\":\"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T17:57:23+00:00\",\"dateModified\":\"2025-04-18T17:57:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/19554.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/19554.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/19554.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/19554.html","og_locale":"zh_CN","og_type":"article","og_title":"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb798\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002websocket-sharp\u63d0\u4f9b WebSocket \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u5e93\uff0c\u57fa\u4e8e C# \u5f00\u53d1\u7684\uff0c\u5e76\u9075\u5faa WebSocket \u534f\u8bae\u89c4\u8303\uff0c\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u8f7b\u677e\u5730\u5728 .NET \u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0 WebSocket \u901a\u4fe1\u30021\u3001\u7b80\u6d01\u6613\u7528\u7684API\uff1a\u63d0\u4f9b\u6e05\u6670\u4e14\u76f4\u89c2\u7684API\u63a5\u53e3\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u5feb\u901f\u96c6\u6210WebSocket\uff0c\u65e0\u8bba\u662f\u521b\u5efa WebSocket \u5ba2\u6237\u7aef\u8fd8\u662f\u670d\u52a1\u5668\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u51e0\u884c\u4ee3\u7801\u5feb\u901f\u5b9e\u73b0\u3002_net websocketsharp.websocket","og_url":"https:\/\/www.wsisp.com\/helps\/19554.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T17:57:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/19554.html","url":"https:\/\/www.wsisp.com\/helps\/19554.html","name":"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T17:57:23+00:00","dateModified":"2025-04-18T17:57:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/19554.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/19554.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/19554.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"websocket-sharp\uff1a.NET\u5e73\u53f0\u4e0a\u7684WebSocket\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u5f00\u6e90\u5e93"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/19554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=19554"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/19554\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=19554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=19554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=19554"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=19554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}