¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: SSL Web Socket on Simpl# #ssl #websocket


 

I found, but can't connect to my TV... what is wrong with my code?
public class SamsungSSL
? ? {
?
? ? ? ? WebSocketClient client;
?
? ? ? ? public SamsungSSL()
? ? ? ? {
? ? ? ? ? ? client = new WebSocketClient();
? ? ? ? ? ? client.Host = "192.168.1.225";
? ? ? ? ? ? client.Port = 8002;
? ? ? ? ? ? client.URL = "/api/v2/channels/samsung.remote.control?name=bm92YWs=";
? ? ? ? ? ? client.SSL = true;
? ? ? ? }
?
? ? ? ? public void Connect()
? ? ? ? {
? ? ? ? ? ??client.Connect();
? ? ? ? }
?
? ? ? ? public int Status()
? ? ? ? {
? ? ? ? ? ? int test = Convert.ToInt32(client.Connected);
? ? ? ? ? ? return test;
? ? ? ? }
?
? ? ? ? public void Disconnect()
? ? ? ? {
? ? ? ? ? ? client.Disconnect();
? ? ? ? }
? ? }

Join [email protected] to automatically receive all group messages.