Showing 6 of 8 total issues
File sync.ts
has 434 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { AuthenticatedWebSocket } from "./authentication";
import {
GoodbyeMessage,
ControlMessage,
DebugNodeUpdateMessage,
- Create a ticketCreate a ticket
Function syncModeRecentRequestMessageHandler
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function syncModeRecentRequestMessageHandler(
this: SyncingWebSocket,
message: SyncModeRecentRequestMessage
) {
const { userId } = this.authState;
- Create a ticketCreate a ticket
Function syncModeRecentResponseMessageHandler
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function syncModeRecentResponseMessageHandler(
this: SyncingWebSocket,
message: SyncModeRecentResponseMessage
) {
const { session } = message;
- Create a ticketCreate a ticket
Function syncModeFullMetaResponseMessageHandler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function syncModeFullMetaResponseMessageHandler(
this: SyncingWebSocket,
message: SyncModeFullMetaResponseMessage
) {
const { session } = message;
- Create a ticketCreate a ticket
Function doSync
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function doSync(socket: SyncingWebSocket) {
socket.on("message", async (data) => {
const message = parseMessage(socket, data);
if (!message) {
return;
- Create a ticketCreate a ticket
Function initSyncFromPeerNode
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function initSyncFromPeerNode(this: SyncingWebSocket) {
const { userId, nodeUuid } = this.authState;
this.log("Initializing synchronization from peer node.");
- Create a ticketCreate a ticket