@Override
	public HandshakeState acceptHandshakeAsServer(Handshakedata handshakedata)
			throws Exception {
		// Sec-WebSocket-Origin is only required for browser clients
		int v = readVersion(handshakedata);
		if (v == 7 || v == 8)// g
			return basicAccept(handshakedata) ? HandshakeState.MATCHED
					: HandshakeState.NOT_MATCHED;
		return HandshakeState.NOT_MATCHED;
	}