DoctorMcKay / node-steam-user

Allows interaction with the Steam network via the Steam client protocol
https://dev.doctormckay.com/forum/7-node-steam-user/
MIT License
894 stars 157 forks source link

Implement `SteamNotificationClient` notifications #485

Closed xPaw closed 2 months ago

xPaw commented 3 months ago

https://github.com/SteamDatabase/Protobufs/blob/master/steam/steammessages_notifications.steamclient.proto

In particular CSteamNotification_NotificationsReceived_Notification.

If you search for notification_type in Steam client javascripts, you can find test functions that include body_data json strings, but for the lib it would be enough to just parse the json.

Example code here: https://github.com/xPaw/Steam-Card-Farmer/blob/115f8ea3201d71321a9fde4b6ef67d33d8eea933/index.mjs#L582

DoctorMcKay commented 2 months ago

Landed in 5.2.0