• 大小: 1.30M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: websocket  Socket  NET  web  T4  

资源简介

a .NET websocket client implementation.

It originated from SuperWebSocket WebSocket Client. For better developing of the websocket client, it was separated from SuperWebSocket and was renamed to WebSocket4Net.



资源截图

代码片段和文件信息

using System;
using System.Net.WebSockets;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using WebSocket4Net;
using Xunit;

namespace Tests
{
    public class Tests
    {

        private IWebHost StartWebSocketServer(Func app)
        {
            Action startup = builder =>
            {
                builder.Use(async (ct next) =>
                {
                    try
                    {
                        // Kestrel does not return proper error responses:
                        // https://github.com/aspnet/KestrelHttpServer/issues/43
                        await next();
                    }
         

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-11 03:28  WebSocket4Net-master\
     文件         507  2019-04-11 03:28  WebSocket4Net-master\.gitignore
     文件         150  2019-04-11 03:28  WebSocket4Net-master\.travis.yml
     目录           0  2019-04-11 03:28  WebSocket4Net-master\.vscode\
     文件        1219  2019-04-11 03:28  WebSocket4Net-master\.vscode\launch.json
     文件         345  2019-04-11 03:28  WebSocket4Net-master\.vscode\tasks.json
     文件         120  2019-04-11 03:28  WebSocket4Net-master\Build.bat
     文件         621  2019-04-11 03:28  WebSocket4Net-master\GettingStarted.md
     目录           0  2019-04-11 03:28  WebSocket4Net-master\JsBridge\
     文件        2464  2019-04-11 03:28  WebSocket4Net-master\JsBridge\JsBridge.sln
     目录           0  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\
     文件        1406  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\AutoJsBridge.html
     文件        3873  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\JsBridge.html
     目录           0  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Properties\
     文件        1227  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Properties\AssemblyInfo.cs
     文件        4286  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Sample.csproj
     文件        7680  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Silverlight.js
     文件        1256  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Web.Debug.config
     文件        1316  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Web.Release.config
     文件         296  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\Web.config
     文件        4468  2019-04-11 03:28  WebSocket4Net-master\JsBridge\Sample\WebSocketEx.js
     目录           0  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\
     文件         305  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\App.xaml
     文件        2412  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\App.xaml.cs
     文件         254  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\ClientAccessPolicyProtocol.cs
     文件         485  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\MainPage.xaml
     文件         697  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\MainPage.xaml.cs
     文件         527  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\MessageEventArgs.cs
     目录           0  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\Properties\
     文件         207  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\Properties\AppManifest.xml
     文件         825  2019-04-11 03:28  WebSocket4Net-master\JsBridge\WebSocket4Net.JsBridge\Properties\AssemblyInfo.cs
............此处省略322个文件信息

评论

共有 条评论