karma-runner / karma-runner/karma

Use serverSocket in middleware and expose window.karma.socket

Open
#2,750 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I'd like to be able to reuse Karma's web socket in my middleware. I cannot do this because I run into circular dependency. Is there no way to do that?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how middleware accesses the serverSocket and how window.karma is exposed. Resolve the circular dependency question and define the intended serverSocket and window.karma.socket behavior before determining what tests should verify.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.