Web Thread

I want to create two web threads.
One to receive TCP datas and one to send TCP datas.
How can I do that. Are there any examples or can anyone give an example, please?

Sockets do work without a thread.

So simply create sockets and connect/listen.
See socket examples coming with Xojo.