private void handleConnection() throws IOException { while (true) { Command command = CommandCodec.decode(webSocket.getMessage()); webSocket.sendMessage(CommandCodec.encode(executeCommand(command))); } }