Last post Mar 16, 2020 01:38 AM by Brando ZWZ
Mar 11, 2020 03:48 PM|michielsweb|LINK
i am brand new too signalr.
i managed to get the " moveshape demo to work
but im trying to figure out if i can just send 1 string or array of light data
every 1 second to the clients. clients not have to send back anything.
can someone please help me. i feel totaly lost reading into the site info.
my c# is not that strong.
i got a c# script generating a string of realtime data every 0.3 seconds.
example of string is string ann = "0,1,2,1,2,1,0,244,15"
ofcourse im stil trying to read and study about this . but honestly i dont understand half of the signalr workings.
Mar 12, 2020 06:50 AM|Brando ZWZ|LINK
Asp.net core signalr hub:
For example, we will start to transfer the data when the page loaded to all the clients, we could use asp.net core BackgroundService to achieve this requirement. Details about how to do it, you could refer to below codes:
We could use System.Timers.Timer library to achieve this requirement. Details, you could refer to this
Mar 12, 2020 08:20 AM|michielsweb|LINK
hi Brando first off all.
Thank you for ure time to respond!
as i am trying to study/ understand the URLS u sendend.
i try to answer some of your questions.
i would love to transfer data as soon as client connects. or just try send it whenever server is online if thats easier.
basicly the c# program i have is reading some warning lights & arrow directions on 3 gauges out of my flightsim using the proper sdk ofcourse.
it turns the data into a simple string
so in the ideal world once the seperate data sending project is working i would love to able to just merge the projects and call a function or run the transfer script in my timer loop.
if there is a way u can help me how i can send " string" from server to client and how to read it.
i can mess further inside vs because that is the main info i cant seem to find sadly
Mar 13, 2020 10:15 AM|michielsweb|LINK
close topic pls i went whit sockets could get it too work already
Mar 16, 2020 01:38 AM|Brando ZWZ|LINK
I'm glad that you have solved the issue by yourself. Could you please post the details information about how you solved the issue and mark it as answer?
This will help other people who faces the same issue and find the solution more easily.
Thank you very much.