Last active
July 5, 2016 15:54
-
-
Save jasonehines/664b14a8c03f3efd1456a042639b5ab3 to your computer and use it in GitHub Desktop.
This file contains 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
GNU nano 2.5.3 File: /usr/local/bin/greeting.py | |
#!/usr/bin/python | |
from websocket import create_connection | |
ws = create_connection("ws://localhost:8000/events/ws") | |
ws.send('{"message_type": "speak", "context": null, "metadata": {"utterance": "Welcome back Jason"}}') | |
result = ws.recv() | |
ws.close() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment