From 87d018214cd7f5fd9088f3b890754eb9f97a2d75 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Feb 2017 21:56:35 +0100 Subject: [PATCH] Add more examples --- source/developers/websocket_api.markdown | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/developers/websocket_api.markdown b/source/developers/websocket_api.markdown index e7a1d974ef2..785b907b9fe 100644 --- a/source/developers/websocket_api.markdown +++ b/source/developers/websocket_api.markdown @@ -1,7 +1,7 @@ --- layout: page -title: "Websocket API" -description: "Home Assistant Websocket API documentation" +title: "WebSocket API" +description: "Home Assistant WebSocket API documentation" date: 2016-11-26 13:27 sidebar: true comments: false @@ -9,9 +9,11 @@ sharing: true footer: true --- -Home Assistant contains a websocket API. This API can be used to stream information from a Home Assistant instance to any client that implements websockets. Implementations in different languages: +Home Assistant contains a WebSocket API. This API can be used to stream information from a Home Assistant instance to any client that implements WebSocket. Implementations in different languages: - [JavaScript](https://github.com/home-assistant/home-assistant-js-websocket) - powers the frontend + - [Python](https://raw.githubusercontent.com/home-assistant/home-assistant-dev-helper/master/ha-websocket-client.py) - CLI client using [`asyncws`](https://async-websockets.readthedocs.io/en/latest/) + - [JavaScript/HTML](https://raw.githubusercontent.com/home-assistant/home-assistant-dev-helper/master/ha-websocket.html) - WebSocket connection in your browser Connect your websocket implementation to `ws://localhost:8123/api/websocket`.