in codelabs/health_data_analysis_codelab/src/uwear/workload.go [314:326]
func retrieveTokenAndEKMFromConn(conn *websocket.Conn) (string, string, error) {
_, content, err := conn.ReadMessage()
if err != nil {
return "", "", fmt.Errorf("failed to read message from the connection: %v", err)
}
ekm, err := getEKMHashFromConn(conn)
if err != nil {
return "", "", fmt.Errorf("failed to get EKM from outbound request: %w", err)
}
return string(content), ekm, nil
}