Requirer Posted July 5, 2017 Report Share Posted July 5, 2017 Hello, i try run your library ( and i catch this error. I need run exactly your library, because this support websockets. Beacuse i need proxy for multiple connections (more than 1000 active connections). What can i do in this case? If you can, please find me in telegram: http://t.me/gefort for comfortable communication:) Thanks you! // ERROR details { eresult: 5, count_loginfailures_to_migrate: 0, count_disconnects_to_migrate: 0 }events.js:141 throw er; // Unhandled 'error' event ^ Error: Disconnected at CMClient.connect.CMClient._disconnected (/home/do/Documents/backgame/nsteam/node_modules/steam-client/lib/cm_client.js:340:22) at emitThree (events.js:97:13) at WebSocketConnection.emit (events.js:175:7) at WebSocket.<anonymous> (/home/do/Documents/backgame/nsteam/node_modules/steam-client/lib/websocket_connection.js:57:13) at emitThree (events.js:97:13) at WebSocket.emit (events.js:175:7) at /home/do/Documents/backgame/nsteam/node_modules/websocket13/lib/base.js:363:12 at pipe (/home/do/Documents/backgame/nsteam/node_modules/websocket-extensions/lib/pipeline/index.js:37:40) at Pipeline._loop (/home/do/Documents/backgame/nsteam/node_modules/websocket-extensions/lib/pipeline/index.js:44:3) at Pipeline.processIncomingMessage (/home/do/Documents/backgame/nsteam/node_modules/websocket-extensions/lib/pipeline/index.js:13:8) // CODE var Steam = require('steam-client'); var steamClient = new Steam.CMClient(Steam.EConnectionProtocol.WebSocket); steamClient.connect();steamClient.on('connected', function() {console.log('connected!') steamClient.logOn({ "account_name": "My steam username", "password": "my password"}); }); steamClient.on('logOnResponse', function(details) { console.log('details', details)}); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 5, 2017 Report Share Posted July 5, 2017 You're not meant to use steam-client on its own. You should use it alongside something like steam-user. You can still use it with WebSockets and proxies, doing something like this: const Steam = require('steam-client'); const SteamUser = require('steam-user'); let client = new Steam.CMClient(Steam.EConnectionProtocol.WebSocket); client.setHttpProxy("http://user:[email protected]:12345"); let user = new SteamUser(client); // use user normally... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.