Skip to content

Example of API server communicate with ws server, with Fiber

License

Notifications You must be signed in to change notification settings

WLun001/fiber-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of API server send message to websocket server

API Server -> WS server -> Browser (Not showing here)

Run

Open terminal, run ws server

go run ws.go

Open another terminal tab, run api server

go run api.go

Open another terminal tab, run the following command to call the api server

curl http://127.0.0.1:8081

A message will appear on ws server terminal tab

About

Example of API server communicate with ws server, with Fiber

Resources

License

Stars

Watchers

Forks

Languages