Skip to content

Channel for websocket, broadcast message to others in the same channel.

License

Notifications You must be signed in to change notification settings

prikevs/WSChannel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSChannel

Channel for websocket, broadcast message to others in the same channel.

This server is just used to redirect and send WebSocket packages without any modification.

Channel

  • URI: ws://address:port/ws/<channel>

Clients in the same channel will receive messages of other clients in the same channel.

Dependencies

Run

  • Clone this repo and set up GOPATH
$ go get github.com/gorilla/websocket
$ go build -o wschannel main.go hub.go conn.go
$ ./wschannel -addr=<address>:<port>

//wschannel will listen on the port(default 8080) and waiting for connections.

About

Channel for websocket, broadcast message to others in the same channel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published