Converting audio file into bytes and send over web socket

for the PR:

  1. You can copy paste this and change it to send some binary data (preferably really not something that can be represented as text)
    2.You should probably wait for Correctly handle server-initiated WebSocket close by imiric · Pull Request #1186 · grafana/k6 · GitHub to be merged as it’s touching somethings there and this might turn to be a problem. After it’s merged (probably in the next hour) you can rebase your changes and make a PR
  2. Thanks :confetti_ball: !!!

About the sdk: I don’t understand the question. What kind of sdk, for what and in what language?
If it’s :

  1. golang … k6 doesn’t have such functionality … you will need to patch it in yourself, and it’s fairly unlikely that we will add it to the official k6 :frowning:
  2. js:
    2.1.you might just import it but if it’s using crypto something … it’s not going to work as k6 doesn’t implement any … standard(ish) crypto library we have our own … which is currently in feature freeze until we decide … well what standard(ish) crypto library we are going to implement.
    2.2. You can take a look at how it’s proposed to use browserify for … additional compatibility with node.
    2.3. And finally I have a small repo that showcases how you can use webpack (and npm and friends) to import npm modules and they directly to be … webpacked (?)
  3. not any of the above … well, you more or less can’t :slight_smile:

p.s. this might be better for another thread instead of … hijacking this one :wink: