Skip to content

Commit 189a984

Browse files
committed
Removed hardcoded port adding to url
1 parent 3ebf57d commit 189a984

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

client.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ class Client {
4040
if (!/^wss?:\/\//.test(url)) {
4141
url = `ws://${url}`;
4242
}
43-
// Same for ":17000"
44-
if (!/\:17000$/.test(url)) {
45-
url += ':17000';
46-
}
4743

4844
this.reqId = -1;
4945
this.autoReconnect = autoReconnect;

examples/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { EventQueryFlags, MatchType } = cdplogger.Client;
77

88

99
async function main() {
10-
const client = new cdplogger.Client('127.0.0.1', true);
10+
const client = new cdplogger.Client('127.0.0.1:17000', true);
1111

1212
try {
1313
console.log("Waiting for connection to establish...");

0 commit comments

Comments
 (0)