Created
July 11, 2020 03:16
-
-
Save burrussmp/99bbe24bcb9e76ac949489c0d8c8d10e to your computer and use it in GitHub Desktop.
Javascript Ajax Call to Get Data in Observable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = { | |
while(1){ | |
let response = await $.ajax({ | |
url: `${server_url}/data`, | |
contentType: 'application/json', | |
type: 'GET' | |
}); | |
yield Promises.delay(6000, response); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment