Added a socket server for internal debugging.