Posts: 6
Joined: Dec 2016
Reputation:
0
2018-05-06, 14:48
Hello,
I created a django application (server) how to create a client, kodi plugin socket support (TCP communication) for my server? Any advice, example? Pleas help me.
Thank you!
Posts: 1,665
Joined: Jun 2011
Reputation:
119
Nobody uses raw TCP. If you control both sides of the communication, REST server and JSON-encoded payload is the preferred way to go. For server-side you can use Django REST framework and for the client side requests
is the most obvious choice.
Posts: 1,665
Joined: Jun 2011
Reputation:
119
Pick whatever you like. Almost every plugin retrieves some data from the Net. Purely offline plugins are rare. Also I mentioned requests library. Maybe you should start from requests docs.