websocket
websocket copied to clipboard
⚠️ Deprecated repository, available within Fiber Contrib.
I am go newbie, but I wonder, Is there the way to mock websocket.Conn ? I cannot find any example in the test file too.
 I use code in server ```go app.Use("/", func(c *fiber.Ctx) error { if websocket.IsWebSocketUpgrade(c) { c.Locals("allowed", true) return c.Next() } return fiber.ErrUpgradeRequired }) app.Get("/", websocket.New(func(c *websocket.Conn) { c.Close() }, websocket.Config{...
This is the code i'm using which is copied from the readme.md when i'm running this code locally im getting upgrade required error 
I've wrtten a websocket server in fiber's websocket, and the client is js websocket in browser. Some questions regarding ping/pong: 1. Is there any default ping/pong msg between the websocket...
Hello, What is the best way to use different handlers, for the same route, depending of ws or non-ws request. For my project I need to use the same path...
` app.Get("/ws/:id", websocket.New(func(c *websocket.Conn) { // c.Locals is added to the *websocket.Conn log.Println(c.Locals("allowed")) // true log.Println(c.Params("id")) // 123 log.Println(c.Query("v")) // 1.0 log.Println(c.Cookies("session")) // "" }))` add this code in function...
How to access c.Locals ( where c is *fiber.Ctx) from a custom the websocket handler?
it would be awesome if you create a websocket example to show how to use it with templates.
middleware websocket does not handle panic when using app.Use(recover.New()) for all routes.