some changes to exported structs/functions
Validate the protocolName and protocolVersion. Fix the websocket protocol return value