Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within C# and .NET
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
C# and .NET
how do i create and use events in a websocket?
leo fishbee
Greenhorn
Posts: 1
posted 3 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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(); } } }
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
C# codedom compiler compiling errors
negating an entry in a list
Need serious help with homework. Missing it completely . Simple Interest Application
C# Code
Java Events: is there a direct Java analogue to Qt's signals/slots & C#'s delegate?
More...