Read socket
From Botnix
read_socket
main::read_socket(id)
This call reads data from a socket which you have previously opened using the main::create_socket function. You should only use this function inside your socket's callback function, where you can gaurantee data is waiting to be read. if you call it outside this context, the socket will block the whole program until data becomes available for reading. If the function returns an empty string, the socket has closed and you should call main:: delete_socket to remove your socket id.
NB: If you are within your callback function, you must usually read data, as data is pending, and will build up if not read until the sockets sendq exceeds!

