Skip to content

Instantly share code, notes, and snippets.

@jasonehines
Last active July 5, 2016 15:54
Show Gist options
  • Save jasonehines/664b14a8c03f3efd1456a042639b5ab3 to your computer and use it in GitHub Desktop.
Save jasonehines/664b14a8c03f3efd1456a042639b5ab3 to your computer and use it in GitHub Desktop.
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