I\'m trying to get streaming data from an API. This is the code I have (also based on this question):
h = {"Connection" : "Upgrade",