simple rebroadcasting socket server with rpc support