title: How to Use WinHttpRequest (WinHTTP Services) in Excel VBA to Stream Data from Websocket Server
body: <p>I would like to stream data from a websocket server using VBA in an Excel workbook.</p>
  
  <p>This is the actual data stream I would like to receive and process in VBA:</p>
  
  <p><a href="https://i.stack.imgur.com/5k8a0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5k8a0.png" alt="Screenshot Chrome Developer Tools"></a></p>
  
  <p><strong>Would you recommend using WinHttpRequest (WinHTTP Services) or any other service to connect and receive the websocket data?</strong> </p>
  
  <p>From the <a href="https://docs.microsoft.com/de-de/windows/win32/winhttp/winhttprequest" rel="nofollow noreferrer">Microsoft documentation</a> it is not clear to me if WinHttpRequest supports the websocket protcol and unfortunately no examples are presented.</p>