Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

sse

Introduction

This example shows how to use sse with reverseproxy.

Usage

  • Start server
go run main.go
  • Test
curl -N --location http://localhost:8080/proxy/sse

Result:

> curl -N --location http://localhost:8080/proxy/sse
event:timestamp
data:2023-10-09T22:32:14+08:00

event:timestamp
data:2023-10-09T22:32:14+08:00

event:timestamp
data:2023-10-09T22:32:14+08:00

event:timestamp
data:2023-10-09T22:32:14+08:00

event:timestamp
data:2023-10-09T22:32:14+08:00

event:timestamp
data:2023-10-09T22:32:15+08:00

event:timestamp
data:2023-10-09T22:32:15+08:00

event:timestamp
data:2023-10-09T22:32:15+08:00

event:timestamp
data:2023-10-09T22:32:15+08:00

event:timestamp
data:2023-10-09T22:32:15+08:00