In application (plugin) where it doesn't work, call to ClientSocked takes place not from the main thread. And in example above, where I use ClientSocket from main(), it works.
You are right, connect and write had to be called also in run in this example.
Bookmarks