Migrate old SocketServer example to new scheme