gofiber / websocket

⚠️ Deprecated repository, available within Fiber Contrib.
https://github.com/gofiber/contrib/tree/main/websocket
MIT License
289 stars 25 forks source link

Example of mocking websocket.Conn #123

Open tnuanchuay opened 2 years ago

tnuanchuay commented 2 years ago

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.

gaby commented 2 years ago

👍🏻 for adding this

daveteu commented 1 year ago

u can checkout fast http test files. e.g. https://github.com/fasthttp/websocket/blob/master/client_server_test.go