bensaufley/code-words-web

View on GitHub
src/ducks/session.js

Summary

Maintainability
A
1 hr
Test Coverage

Function openWebSocket has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function openWebSocket(token) {
  return (dispatch) => {
    const webSocketUrl = `ws://${process.env.REACT_APP_API_URL}/api/v1/?access_token=${token}`;
    let initializeWebSocket,
        webSocket = new WebSocket(webSocketUrl);
Severity: Minor
Found in src/ducks/session.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status