Topics
Replies
Manisit
10 Mar 2024, 10:14
( Updated at: 10 Mar 2024, 15:21 )
RE: simple code Websocket on cBots
firemyst said:
"However, the problem is that when I tried copying the code to use, it resulted in errors, and there are no examples for me to follow."
Have you even tried Google?
A simple search on “c# websocketclient example” brings back a list of websites, and the first one (medium.com) has a complete example including how to add it to your project using the NuGet package manager.
I've attempted to use other WebSocket client libraries that I've previously developed .NET apps with. However, they fail to connect to the WebSocket server. I don't understand if there's anything additional I need to set to allow this?
Development isn't hard for me, it's just that I still don't understand what your system entails, what can be used, and there are very few examples
@Manisit
Manisit
10 Mar 2024, 06:39
( Updated at: 10 Mar 2024, 15:21 )
RE: simple code Websocket on cBots
firemyst said:
"However, the problem is that when I tried copying the code to use, it resulted in errors, and there are no examples for me to follow."
Have you even tried Google?
A simple search on “c# websocketclient example” brings back a list of websites, and the first one (medium.com) has a complete example including how to add it to your project using the NuGet package manager.
I understand how to write a WebSocket client, but the problem is that I still don't understand what your system allows.
Can I use external libraries, or are there any built-in functions available?
Because when I try writing it in my way, it can't connect to the mock WebSocket server
@Manisit
Manisit
10 Mar 2024, 15:52 ( Updated at: 11 Mar 2024, 07:41 )
RE: RE: simple code Websocket on cBots
Manisit said:
Currently, I can fix it by modifying this topic
[Robot(AccessRights = AccessRights.None)]
Modified to
[Robot(AccessRights = AccessRights.FullAccess)]
@Manisit