Navigation

    Hedgehack community

    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    API for client

    YCCaster
    2
    2
    2026
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • neshmi
      neshmi last edited by neshmi

      Thanks for all the great work on yccaster!

      I was wondering if it is possible to feed the client username instead of the address for the /clients API endpoint. The address isn't really useful, I'm more interested in collecting stats on usage by username.

      So this:

      {"data":[{"address":"192.168.100.23:44820","bytes_transferred":546848,"started_at":1708986854}]}
      

      becomes something like:

      {"data":[{"username":"mvincent","address":"192.168.100.23:44820","bytes_transferred":546848,"started_at":1708986854}]}
      

      Thanks!

      1 Reply Last reply Reply Quote 0
      • ilyavialkov
        ilyavialkov last edited by

        Hi @neshmi, thank you for your message.
        Currently we do not store usernames or mount point names in caster. But each connection has a unique connection_id. This connection_id is present in all events and auth requests. So you can match events with a particular username by it.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors