# Alpaca websocket, can't connect to it

**URL:** https://forum.alpaca.markets/t/alpaca-websocket-cant-connect-to-it/1079
**Category:** Alpaca Questions
**Created:** [April 1, 2020, 6:04pm UTC](https://forum.alpaca.markets/t/alpaca-websocket-cant-connect-to-it/1079 "2020-04-01T18:04:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![andyross](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@andyross](https://forum.alpaca.markets/u/andyross)
#### Post date: [April 1, 2020, 6:04pm UTC](https://forum.alpaca.markets/t/alpaca-websocket-cant-connect-to-it/1079/1 "2020-04-01T18:04:03Z")

</div>

Hi,

I use QuantConnect and few days ago I noticed it can’t connect to alpaca websocket with an error like:

WebSocket.connect|WebSocketSharp.WebSocketException:  
An error has occurred during a TLS handshake. —\> System.Security.Authenticati  
on.AuthenticationException: A call to SSPI failed, see inner exception. —\> Sys  
tem.ComponentModel.Win32Exception: The message received was unexpected or badly  
formatted

I wonder if there has been some changes made to the websocket server, since this code was working 2 weeks ago.
