About 339,000 results
Open links in new tab
  1. Your First C# Websocket Client - Medium

    Nov 15, 2021 · In this tutorial, you will learn how to set up a Visual Studio Coding environment and code a program in C#. You will also learn how to connect to a WebSocket service (in this case Tradermade’s...

  2. c# - Creating a "Hello World" WebSocket example - Stack Overflow

    Apr 18, 2012 · Here is the server code: static void Main(string[] args) TcpListener server = new TcpListener(IPAddress.Parse("127.0.0.1"), 9998); server.Start(); var client = server.AcceptTcpClient(); var stream = client.GetStream(); while (true) var buffer = new byte[1024]; . // wait for data to be received.

  3. Building a C# Websockets Client: A Step-by-Step Example - Web …

    Aug 8, 2024 · In this tutorial, we have covered the basics of creating a Websockets client in C#. You can now expand on this example by adding error handling, implementing a message queue, or integrating it into your existing application.

  4. WebSocket sample - Code Samples | Microsoft Learn

    Sep 19, 2024 · Shows how to send and receive data using the WebSocket classes in the Windows.Networking.Sockets namespace. The sample demonstrates the following: Making a WebSocket connection, sending and receiving data, and closing the connection. Handling both trusted (hard coded) URI inputs and unvalidated (user-entered) URI inputs.

  5. c# - Create a client websocket based console app - Stack Overflow

    Jan 17, 2021 · Can anyone provide a very basic working example of how I can connect a .net core console app to wss://echo.websocket.org? I have started with: class Program. static void Main(string[] args) using (var ws = new WebSocket("wss://echo.websocket.org"))

  6. Marfusios/websocket-client: .NET/C# websocket client library - GitHub

    I've prepared a few examples for you: Every subscription code is called on a main websocket thread. Every subscription is synchronized together. No parallel execution. It will block the receiving thread. Every single subscription code is called on a separate thread.

  7. Building a WebSocket Client in C# - A Step-by-Step Guide

    Aug 8, 2024 · In this tutorial, we will walk through creating a WebSocket client in C# using examples and detailed explanations. Setting Up the Project. First, let's set up a new C# console application in Visual Studio. Once the project is created, we need to add the necessary NuGet package to work with WebSockets. Install-Package System.Net.WebSockets.Client

  8. Implementing WebSocket Client and Server on ASP.NET Core 6.0 (C#)

    Jun 30, 2023 · In this tutorial, we will implement a WebSocket server and client in .NET 6.0 with C#. Prerequisites. Visual Studio 2022.NET 6.0; Creating a WebSocket Server

  9. C# WebSocket - working with websockets in C# - ZetCode

    Jul 5, 2023 · C# WebSocket client. In the next example we create a C# console program that establishes a websocket connection to the server.

  10. WebSocket Client in C# - Delft Stack

    Oct 12, 2023 · This guide will discuss what C# WebSocket is and how to establish a connection in C#. And finally, the article will tackle the WebSocket client in C# and how to write it.

Refresh