How to set ursim as a sever by socket

I have a problem about ursim, I have a host software and I want connect it with ursim by socket. But I get no idea about set ursim as a sever and my host software can send and recieve data with ursim from manual of urscript, all functions in manual about socket can not fulfil my needs.

I don’t think you can. I looked into it some time ago and didn’t figure it out.
Closest I could get was having the client on a separate thread and using the send commands every X milliseconds.