olahol / melody

:notes: Minimalist websocket framework for Go
BSD 2-Clause "Simplified" License
3.75k stars 366 forks source link

Comfortable with GoFiber framework? #68

Closed shahriar350 closed 2 years ago

shahriar350 commented 2 years ago

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

olahol commented 2 years ago

FastHTTP is not supported by gorilla/websocket-

idc77 commented 1 year ago

fasthttp/websocket is a fork of gorilla/websocket. What are the odds this might be adapted?

codecat commented 1 year ago

I did a super quick hacky fork of Melody because I needed it to work with Fiber as well: https://github.com/codecat/melody

Definitely not gonna be maintaining it as much (I also removed the tests because I didn't wanna rewrite all of those), but it's usable in its current state, if anyone needs it.

api.Get("/live", func(c *fiber.Ctx) error {
    return gMelody.HandleRequest(c.Context())
})