title: How to use socket.io-client in KotlinJS
body: <p>I want to use the socket.io-client library from nodejs in my React-Kotlin project.</p>
  
  <p>I tried to load it like this:</p>
  
  <pre><code>@file:JsModule("socket.io-client")
  @file:JsNonModule
  
  package modules
  
  @JsName("Manager")
  external fun socket(uri: String): dynamic
  </code></pre>
  
  <p>Then client will connect to the server when I call it with this function <code>val s = socket("http://localhost:8080/")</code> but when I call an emit like this <code>s.emit("testemit", mapOf("test" to false))</code> it doesn't send it.
  If I change <code>s.emit</code> to something else that does not exist in socket.io-client, I get an error message that the function does not exist.</p>