websocket icon indicating copy to clipboard operation
websocket copied to clipboard

⚠️ Deprecated repository, available within Fiber Contrib.

Results 27 websocket issues
Sort by recently updated
recently updated
newest added

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.

![image](https://user-images.githubusercontent.com/33619903/178670825-b34407e4-ad7b-4378-b289-dda1697f71ea.png) 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 ![websocket error](https://user-images.githubusercontent.com/63330310/178430579-fcefabb4-3338-4f3f-9948-3e4027b0678e.png)

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?

🤔 Question

it would be awesome if you create a websocket example to show how to use it with templates.

📒 Documentation
👍 Accepting PR

middleware websocket does not handle panic when using app.Use(recover.New()) for all routes.

☢️ Bug
👍 Accepting PR