1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-26 03:20:08 +02:00
echo/website/content/recipes/websocket.md
Vishal Rana c8d77b2675 Fixed #307
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-01-09 10:02:37 -08:00

48 lines
552 B
Markdown

---
title: WebSocket
menu:
side:
parent: recipes
weight: 5
---
### Server
`server.go`
{{< embed "websocket/server.go" >}}
### Client
`index.html`
{{< embed "websocket/public/index.html" >}}
### Output
`Client`
```sh
Hello, Client!
Hello, Client!
Hello, Client!
Hello, Client!
Hello, Client!
```
`Server`
```sh
Hello, Server!
Hello, Server!
Hello, Server!
Hello, Server!
Hello, Server!
```
### Maintainers
- [vishr](https://github.com/vishr)
### [Source Code](https://github.com/vishr/recipes/blob/master/echo/recipes/websocket)