Skip to content

Commit

Permalink
Merge pull request #332 from otrocodigo/main
Browse files Browse the repository at this point in the history
FIXED #331: mock event websocket server ignores a valid 'session'
  • Loading branch information
Xemdo authored Aug 12, 2024
2 parents 2b10cc2 + 61dab98 commit eafe225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/events/websocket/mock_server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (ws *WebSocketServer) HandleRPCEventSubForwarding(eventsubBody string, clie
didSend := false

for _, client := range ws.Clients.All() {
if clientName != "" && !strings.EqualFold(strings.ToLower(clientName), clientName) {
if clientName != "" && !strings.EqualFold(strings.ToLower(clientName), client.clientName) {
// When --session is used, only send to that client
continue
}
Expand Down

0 comments on commit eafe225

Please sign in to comment.