All communication is done through standard IO between your bot and the server. Opening sockets in your bot is currently not allowed, as this could lead to unfair advantages for players with faster computers.
We're always looking to add more programming languages, so if you come up with a starterbot in Red, we will consider adding support for the language.