OpenHPS/openhps-mqtt

View on GitHub
src/server/service/MQTTServer.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function _onInitServer has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private _onInitServer(): Promise<void> {
        return new Promise((resolve, reject) => {
            const brokerId = `BROKER_${process.pid}_${Math.random().toString(16).substring(2, 8)}`;
            this.aedes = (aedes as any)({
                id: brokerId,
Severity: Major
Found in src/server/service/MQTTServer.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status