shadowdevfr Member Jun 7, 2021 #1 Hi. It's been a day i've been trying to figure out how to use this api, wich needs a websocket to return a server's console output. Here are the docs: I got the token and the websocket link, but I have no idea how to connect to the websocket and login after the connection by sending {"event":"auth","args":["eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6Ij..."]}
Hi. It's been a day i've been trying to figure out how to use this api, wich needs a websocket to return a server's console output. Here are the docs: I got the token and the websocket link, but I have no idea how to connect to the websocket and login after the connection by sending {"event":"auth","args":["eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6Ij..."]}
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2021 #2 WebSocketClient.SendText ? Make sure to use JSON to create those strings. Upvote 0
shadowdevfr Member Jun 8, 2021 #3 Erel said: WebSocketClient.SendText ? Make sure to use JSON to create those strings. Click to expand... Thanks for your reply erel. Can I SendText even if the websocket connection is returning 403? Upvote 0
Erel said: WebSocketClient.SendText ? Make sure to use JSON to create those strings. Click to expand... Thanks for your reply erel. Can I SendText even if the websocket connection is returning 403?
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2021 #4 No. You can only send it after a connection is established. Upvote 0
shadowdevfr Member Jun 8, 2021 #5 oh. then I have no idea how I can work with this api. Thanks for the answer though. Upvote 0