Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
leo fishbee
Greenhorn
+ Follow
news
1
Posts
1
Threads
since Aug 10, 2021
Merit badge:
grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads
Recent posts by leo fishbee
how do i create and use events in a websocket?
i am trying to do a code block using values in the event that update, specifically a temperature represented as a double.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using tyllibrary; using System.IO; namespace SKTtest { class Program { static void Main(string[] args) { TYLSocket socket = new TYLSocket(); socket.Connect("188.2.2.112", 2800); int Summation1 = 0; socket.eventPool.Subscribe("flight", new EventHandler<flightArgs>((x, y) => Console.WriteLine(y.STR1.temp + " " + y.STR1.alt))); socket.SubscribeEquip("gulfstream"); Console.ReadKey(); } } }
show more
3 years ago
C# and .NET