Add unit tests for WebSocket handler functions
Open
go
good first issue
hacktoberfest
websocket
- Dominant language
- Go
- Stars
- 6
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
### 🧪 Add Unit Tests for WebSocket Handlers
The `ListenForWs` and `ListenToWsChannel` functions should be tested using mocks:
* Simulate a client connecting
* Send fake messages through the channel
* Ensure that user list updates & broadcasts behave as expected
Create `_test.go` files in `handlers/` directory.
Contributor guide
Assessment
This issue has not been assessed yet.