Skip to content

Commit

Permalink
test: add Ws.Client constructor types test
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Jan 7, 2025
1 parent 96fc4d8 commit 66dd37a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/types/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ import { Client } from '../../lib/client';

const init = () => {

const client = new Client('ws://localhost');
const client = new Client('ws://localhost', {
ws: { // optional
origin: 'http://localhost:12345',
maxPayload: 1000,
headers: { cookie: 'xnes=123' }
}
});

client.connect()

Expand Down

0 comments on commit 66dd37a

Please sign in to comment.