Skip to content

Commit

Permalink
remove index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbCaudill committed Dec 14, 2023
1 parent 6236b4e commit 0fbc452
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ export interface PeerEventPayload {
* socket.send('Hello!')
*
* // listen for messages
* socket.addEventListener("message", { data } => {
* console.log(data)
* socket.addEventListener("message", (event) => {
* const message = event.data
* console.log(message)
* })
* })
* ```
Expand Down
4 changes: 0 additions & 4 deletions src/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/Client.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { pause } from "../lib/pause.js"
import { expect, it } from "vitest"
import { Client } from "../Client.js"
import { Server } from "../index.js"
import { Server } from "../Server.js"
import { eventPromise } from "../lib/eventPromise.js"
import { pack, unpack } from "../lib/msgpack.js"
import { allConnected } from "./helpers/allConnected.js"
Expand Down
2 changes: 1 addition & 1 deletion src/test/helpers/allConnected.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Client } from "../../Client.js"
import { DocumentId } from "../../index.js"
import { DocumentId } from "../../types.js"
import { connection } from "./connection.js"
import WebSocket from "isomorphic-ws"

Expand Down
2 changes: 1 addition & 1 deletion src/test/helpers/connection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Client } from "../../Client.js"
import { DocumentId } from "../../index.js"
import { DocumentId } from "../../types.js"
import WebSocket from "isomorphic-ws"

export const connection = (a: Client, b: Client, documentId?: DocumentId) =>
Expand Down

0 comments on commit 0fbc452

Please sign in to comment.