JavaScript - WebSocket Example

Hello,

Can anyone share a simple sample of client javascript code of authentication and subscription on user-data-streams (for testnet). From documentation is not clear how to implement authentication https://binance-docs.github.io/apidocs/futures/en/#user-data-streams.