Languages

Menu
Sites
Language
websocket and samsungctl python library not working

I was trying to use a websocket with the code sample provided in the tizen documentation

 

I don't have access to samsung smart tv now so I was doing the testing using the emulator. I created a python script using the websocket and using the socket url as 'ws//localhost:1010' and both the python and emulator give error and don't connect. I checked the emulator control panel and added a port 1010 in the list and the issue still exists.

 

I even tried to remove the websocket code in the tizen app and created a python script using the samsungctl (which is library used to connect to the samsung tv as a remote control) also used the emulator with host as localhost and port 8001 also opened this port in the emulator and got that error message from python side "ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host" is there any clue what is the issue is ? And will issue still exist when do the same using samsung smart tv ?