Skip to content

Commit

Permalink
Minor naming fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Sep 26, 2023
1 parent 20d4680 commit 32e0dd2
Show file tree
Hide file tree
Showing 4 changed files with 352 additions and 367 deletions.
6 changes: 3 additions & 3 deletions typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
GetResponse,
HostError,
Key,
LocutusWsApi,
FreenetWsApi,
PutResponse,
UpdateNotification,
UpdateResponse,
} from "@locutus/locutus-stdlib/websocket-interface";
} from "@freenetorg/freenet-stdlib/websocket-interface";

const handler = {
onPut: (_response: PutResponse) => {},
Expand All @@ -27,7 +27,7 @@ const handler = {
};

const API_URL = new URL(`ws://${location.host}/contract/command/`);
const locutusApi = new LocutusWsApi(API_URL, handler);
const locutusApi = new FreenetWsApi(API_URL, handler);

const CONTRACT = "DCBi7HNZC3QUZRiZLFZDiEduv5KHgZfgBk8WwTiheGq1";

Expand Down
2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freenetorg/freenet-stdlib",
"version": "0.0.5",
"version": "0.0.6",
"description": "Freenet standard library and utils",
"main": "src/index.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/websocket-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ function getAuthTokenFromCookie(): string | null {
* const locutusApi = new LocutusWsApi(API_URL, handler);
* ```
*/
export class LocutusWsApi {
export class FreenetWsApi {
/**
* Websocket object for creating and managing a WebSocket connection to a server,
* as well as for sending and receiving data on the connection.
Expand Down
Loading

0 comments on commit 32e0dd2

Please sign in to comment.