Running CG Challenge locally

I have cloned a CG challenge repository to Visual Studio Code, and it will run OK.
Can anyone explain the best way to link the input and output of that with the player code?
Do you use sockets in the handlePlayerCommands() and sendGlobalInfo() subroutines?