Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonkpils/gosse

Go SSE Example
https://github.com/tonkpils/gosse

Last synced: 8 days ago
JSON representation

Go SSE Example

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`