melody icon indicating copy to clipboard operation
melody copied to clipboard

:notes: Minimalist websocket framework for Go

Results 34 melody issues
Sort by recently updated
recently updated
newest added

if two goroutines exec these two lines nearly the same time: https://github.com/olahol/melody/blob/master/session.go#L59 https://github.com/olahol/melody/blob/master/session.go#L24 the two goroutines will get the same opening state, and if `close(s.output)` exec first https://github.com/olahol/melody/blob/master/session.go#L63 `case s.output

I noticed that the key/value store in session isn't concurrent safe so I added mutex locks to it

I am working with GoFiber. I feel comfortable seeing this WebSocket framework. Can I use this in my GoFiber application?

example

hi how i get active sessions for use in private chat? thanks

it always timeout.. not proxy via nginx, only melody + gin, the same code as your example... this pic: ![image](https://user-images.githubusercontent.com/59190957/114119399-2479de80-991d-11eb-8c68-429d4a258b70.png) after 1 minute, timeout, disconnect, and reconnect...

bug

@olahol , or anyone. Did you reach the end of the scope of this project?

There seems to be no active maintenance of this repo, but quite a few active forks. Can we transfer ownership of this repo to someone that is currently working on...

# Summary example echo because echo v3. # ref cannot find package "github.com/labstack/echo/engine/standard" https://github.com/labstack/echo/issues/880 # test |test item | test method | test result | date | | --- |...

In your code: func newHub() *hub { return &hub{ sessions: make(map[*Session]bool), broadcast: make(chan *envelope), register: make(chan *Session), unregister: make(chan *Session), exit: make(chan *envelope), open: true, rwmutex: &sync.RWMutex{}, } } But...