DoctorMcKay / node-steam-client

API-compatible fork of node-steam's SteamClient
https://steamcommunity.com/groups/SteamRE/discussions/1/
MIT License
52 stars 19 forks source link

Abort TCP connection request on .end() #15

Closed Aareksio closed 6 years ago

Aareksio commented 6 years ago

Test:

const Steam = require('./');

const httpProxy = 'http://98.76.54.32';

const client = new Steam.CMClient();

client.on('debug', (...data) => console.log(...data));

client.setHttpProxy(httpProxy);

client.connect();
client.connect();

Before:

TypeError: self._connection.setTimeout is not a function
    at node-steam-client\lib\cm_client.js:175:21

After:

No error

Fixes #14