1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-04-26 11:02:14 +00:00

1 Commits

Author SHA1 Message Date
Alex Potsides
0bb1b802c8
feat: programmatically set agentVersion for use in identify ()
If no `agentVersion` is provided for the Identify protocol, the default `AGENT_VERSION` will now be set to
* `js-libp2p/<libp2p.version> UserAgent=<process.version>` when running in Node.js
* `js-libp2p/<libp2p.version> UserAgent=<navigator.userAgent>` when running in the browser (also when running in a webworker)

Fixes 
Supersedes 

Co-authored-by: Kevin Westphal <westphal@consider-it.de>
Co-authored-by: Kevin <56823591+6d7a@users.noreply.github.com>
2022-07-15 16:35:52 +00:00