Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobonobo/go-sse-sample
ServerSentEvent Sample
https://github.com/nobonobo/go-sse-sample
Last synced: 22 days ago
JSON representation
ServerSentEvent Sample
- Host: GitHub
- URL: https://github.com/nobonobo/go-sse-sample
- Owner: nobonobo
- Created: 2015-10-15T10:27:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-10T23:52:51.000Z (about 9 years ago)
- Last Synced: 2023-03-23T11:32:06.308Z (almost 2 years ago)
- Language: Go
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ServerSentEvent Server and Client sample
- server.go: ServerSentEventサーバー実装サンプル
- client.go: GopherJS用クライアントサンプルserver.goから
```go
broker.Push <- []byte("hoge")
```とするとイベント待ちクライアント群に"hoge"がプッシュされる仕組み。
## test run
```sh
make build
make run
make open # other terminal
```