WebSocketExample

所属分类:Websocket编程
开发工具:C#
文件大小:0KB
下载次数:0
上传日期:2020-11-03 17:07:38
上 传 者sh-1993
说明:  基于.NET Core的真实WebSocket服务器示例。
(Realistic WebSocket server examples based upon .NET Core.)

文件列表:
ChannelWSClient/ (0, 2020-11-03)
ChannelWSClient/ChannelWSClient.csproj (170, 2020-11-03)
ChannelWSClient/Program.cs (2401, 2020-11-03)
ChannelWSClient/WebSocketClient.cs (6385, 2020-11-03)
ChannelWSServer/ (0, 2020-11-03)
ChannelWSServer/BroadcastTimestamp.cs (1005, 2020-11-03)
ChannelWSServer/ChannelWSServer.csproj (141, 2020-11-03)
ChannelWSServer/ConnectedClient.cs (2054, 2020-11-03)
ChannelWSServer/Program.cs (1208, 2020-11-03)
ChannelWSServer/Properties/ (0, 2020-11-03)
ChannelWSServer/Properties/launchSettings.json (657, 2020-11-03)
ChannelWSServer/SimpleHtmlClient.cs (3102, 2020-11-03)
ChannelWSServer/Startup.cs (1035, 2020-11-03)
ChannelWSServer/WebSocketMiddleware.cs (9663, 2020-11-03)
ChannelWSServer/appsettings.Development.json (159, 2020-11-03)
ChannelWSServer/appsettings.json (182, 2020-11-03)
KestrelWebSocketServer/ (0, 2020-11-03)
KestrelWebSocketServer/.config/ (0, 2020-11-03)
KestrelWebSocketServer/.config/dotnet-tools.json (153, 2020-11-03)
KestrelWebSocketServer/BroadcastTimestamp.cs (1012, 2020-11-03)
KestrelWebSocketServer/ConnectedClient.cs (2037, 2020-11-03)
KestrelWebSocketServer/KestrelWebSocketServer.csproj (141, 2020-11-03)
KestrelWebSocketServer/Program.cs (1241, 2020-11-03)
KestrelWebSocketServer/Properties/ (0, 2020-11-03)
KestrelWebSocketServer/Properties/PublishProfiles/ (0, 2020-11-03)
KestrelWebSocketServer/Properties/PublishProfiles/FolderProfile.pubxml (1101, 2020-11-03)
KestrelWebSocketServer/Properties/launchSettings.json (629, 2020-11-03)
KestrelWebSocketServer/SimpleHtmlClient.cs (3109, 2020-11-03)
KestrelWebSocketServer/Startup.cs (1042, 2020-11-03)
KestrelWebSocketServer/WebSocketMiddleware.cs (9646, 2020-11-03)
KestrelWebSocketServer/appsettings.Development.json (137, 2020-11-03)
KestrelWebSocketServer/appsettings.json (182, 2020-11-03)
LICENSE (1068, 2020-11-03)
WebSocketClient/ (0, 2020-11-03)
WebSocketClient/Program.cs (2612, 2020-11-03)
WebSocketClient/Properties/ (0, 2020-11-03)
WebSocketClient/Properties/PublishProfiles/ (0, 2020-11-03)
... ...

| :warning: The older `WebSocketExample` and `WebSocketWithBroadcasts` projects were based on the deprecated `HttpListener` technique and will not be updated or maintained. They are still in the repository (but not in the VS solution) only because the first two articles reference them. | | --- | Repository for code from my blog posts: ### 2019-Jan-15: [A Simple Multi-Client WebSocket Server](https://mcguirev10.com/2019/01/15/simple-multi-client-websocket-server.html) ### 2019-Aug-17: [How to Close a WebSocket (Correctly)](https://mcguirev10.com/2019/08/17/how-to-close-websocket-correctly.html) ### 2019-Aug-18: [A Minimal Full-Feature Kestrel WebSocket Server](https://mcguirev10.com/2019/08/18/minimal-full-feature-kestrel-websocket-server.html) ### 2020-June Update: The `KestrelWebSocketServer` and `WebSocketClient` projects have been updated to .NET Core 3.1.x. The Kestrel article did not clarify how I ran the project and I think this caused problems for some people. I set up Visual Studio to run the project in console mode (not under IIS Express or IIS). I also disabled browser auto-launch, which I think will open localhost to the wrong port. In the code Kestrel is configured for localhost:8080. I simply forgot that these settings aren't saved as part of the project file. I've just now re-tested both projects and they are working normally under Win10, as well as Raspbian Linux on a Raspberry Pi 4B. :grin: ### 2020-July-10: [WebSocket Channel Queues](https://mcguirev10.com/2020/07/10/websocket-channel-t-queues.html)

近期下载者

相关文件


收藏者