code: func ParseCloseFrameData(payload []byte) (code StatusCode, reason string) {
  	if len(payload) < 2 {
  		// We returning empty StatusCode here, preventing the situation
  		// when endpoint really sent code 1005 and we should return ProtocolError on that.
  		//
  		// In other words, we ignoring this rule [RFC6455:7.1.5]:
  		//   If this Close control frame contains no status code, _The WebSocket
  		//   Connection Close Code_ is considered to be 1005.
  		return
  	}
  	code = StatusCode(binary.BigEndian.Uint16(payload))
  	reason = string(payload[2:])
  	return
  }
docs: // ParseCloseFrameData parses close frame status code and closure reason if any provided.
  // If there is no status code in the payload
  // the empty status code is returned (code.Empty()) with empty string as a reason.