socket connection on worker thread

#1

Hi,
thanks for providing this excellent code. i tried to create socket in worker thread. it does but WebSocketHandler().onTextMessage(payload) run on main thread (UI thread). i need to run onTextMessage() on worker thread.

0 Likes