sorry to necro this thread but I have a similar issue when trying to capture the 'friendMessage' event when using steam-user. what I have:
var SteamUser = require('steam-user'); // The heart of the bot. We'll write the soul ourselves.
var client = new SteamUser();
client.on('friendMessage', function(steamID, message) {
console.log("Friend message from " + steamID.getSteam3RenderedID() + ": " + message);
});
This is just a snippet of my js file. I do successfully login, create web sessions / cookies etc. but for some reason this event doesn't fire when I send a message to 'client'. I have two steam accounts which I log in to in order to test the friendMessage event. Could the issue be that the accounts are from the same IP? Also, I have confirmed that the messages are sent and received.