trigger onConnect() after successful version check

- throw error if incorrect protocol version