lang:csharp:web
WebSocket
Connecting to websocket using C# (I can connect using JavaScript, but C# gives Status code 200 error) - Stack Overflow Archive du 29/05/2015 le 29/04/2020
Librairie websocket-sharp, Archive du 28 juin 2017
La librairie est compatible Windows XP avec le Framework 4.
using System; using WebSocketSharp; namespace Example { public class Program { public static void Main (string[] args) { using (var ws = new WebSocket ("ws://dragonsnest.far/Laputa")) { ws.OnMessage += (sender, e) => Console.WriteLine ("Laputa says: " + e.Data); ws.Connect (); ws.Send ("BALUS"); Console.ReadKey (true); } } } }
lang/csharp/web.txt · Dernière modification : 2020/04/29 19:16 de root