arya2004 / arya2004/gobanter

Add unit tests for WebSocket handler functions

Open
#3 1 comment 0 reactions 1 assignee Claimed by @Suthar345Piyush View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.