in reply to Background Sub?

There's a tutorial on writing a chat server in Webmonkey that may help you. You need to use select to listen for sockets that have information waiting to be read.