CMsgClientWelcome does not appear to be reliable on newer NodeJs version.
Happens only 50% of the time, but if i start a csgo session, it throws out the error following. Tried with NodeJS 18; 20; 22; 23 -> failed. 14 -> works. Maybe not related but the node-tf2 GC was initiated successfully in all node version.
message.location = $root.CMsgClientWelcome.Location.decode(reader, reader.uint32());
^
TypeError: Cannot read properties of undefined (reading 'decode')
Try to manually patched the \node_modules\globaloffensive\protobufs\generated\gcsdk_gcmessages.js:6740
to if ($root.CMsgClientWelcome && $root.CMsgClientWelcome.Location && typeof $root.CMsgClientWelcome.Location.decode === 'function') { message.location = $root.CMsgClientWelcome.Location.decode(reader, reader.uint32()); } else { reader.skipType(tag & 7); };
it skipped that CMsgClientWelcome decoding and succeeded to initiate the GC connection.
other dependencies: "globaloffensive": "3.1.0", "steam-session": "^1.7.2", "steam-totp": "^2.1.1", "steam-tradeoffer-manager": "^2.12.1", "steam-user": "5.2.3", "steamcommunity": "^3.48.8", "tf2": "^4.0.0",