Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonkpils/gosse
Go SSE Example
https://github.com/tonkpils/gosse
Last synced: 8 days ago
JSON representation
Go SSE Example
- Host: GitHub
- URL: https://github.com/tonkpils/gosse
- Owner: Tonkpils
- Created: 2015-02-18T19:09:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T15:25:04.000Z (over 9 years ago)
- Last Synced: 2023-03-25T14:16:48.647Z (over 1 year ago)
- Language: Go
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoSSE (/ɡo͞os/)
Go Server Sent Events Example
## Getting Started
Clone the repository
```
$ git clone [email protected]:Tonkpils/gosse.git
```### Docker
To run with Docker simply use:
```
$ docker build -t "gosse"
$ docker run -p 8080:8080 gosse
```Then visit your browser at
```
http://:8080/
```### Go
```
$ go run gosse.go
```Then visit your browser at
```
http://localhost:8080/
```## EventSource
To access the EventSource API directly simply visit `/events`