switch (stpType) {
//case 1: //command //commands are not supposed to be received
//throw new WebDriverException("Received command from host?");
case 2: // response
// Log what is being sent.
Response response = Response.parseFrom(payload);
logger.finest("RECV RESPONSE: " + response.toString());
signalResponse(response.getTag(), response);
break;
case 3: // event
Event event = Event.parseFrom(payload);
logger.finest("RECV EVENT: " + event.toString());