Skip to content

Commit

Permalink
rename to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Feb 4, 2024
1 parent c2b51f6 commit 0314277
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Dispatch, SetStateAction, useEffect, useRef, useState } from "react";
import { DifferenceInDate } from "../../shared/date";
import useInterval from "../use-interval";
import { IsClientSideFeatureDisabled } from "./internal/is-client-side-feature-disabled.ts1";
import { IsClientSideFeatureDisabled } from "./internal/is-client-side-feature-disabled.ts";
import WebSocketService from "./websocket-service";
import WsCurrentStart, { NewWebSocketService } from "./ws-current-start";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default class WebSocketService {
private websocket?: WebSocket;
private readonly websocket?: WebSocket;

constructor(url: string, protocols?: string | string[]) {
try {
this.websocket = new WebSocket(url, protocols);
Expand Down Expand Up @@ -32,9 +33,7 @@ export default class WebSocketService {
this.websocket.close();
}

public send(
data: string | ArrayBuffer | SharedArrayBuffer | Blob | ArrayBufferView
): void {
public send(data: string | ArrayBuffer | SharedArrayBuffer | Blob | ArrayBufferView): void {
if (!this.websocket) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { Router } from "../../router-app/router-app";
import { IUseLocation } from "./interfaces/IUseLocation";
import { NavigateFn } from "./shared/navigate-fn";
import { NavigateFn } from "./internal/navigate-fn";

const useLocation = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 0314277

Please sign in to comment.