title: Swift equivalent data structure in Kotlin
body: <p>I'm an Android developer and I don't have much exposure in <code>Swift</code> or <code>Kotlin</code>.    Recently I'm working with a <code>Socket.Io</code> client (Mirroring the existing iOS app) and found the snippet.</p>
  
  <pre><code>// swift code snippet    
  socket.emit("joinRoom", ["room": roomName])    
  </code></pre>
  
  <p><strong>Question:</strong> How can I represent the above line of code in kotlin especially the second parameter <code>(["room": roomName])</code></p>
  
  <p><strong>More clearly:</strong> What kind of data type can be use to represent the second parameter.</p>
  
  <pre><code>// Server Implementation
   socket.on("joinRoom", function (data) {
          console.log("Got 'joinRoom' from client , " + JSON.stringify(data));
          sub.subscribe(data.room);
          socket.join(data.room);    
      });    
  </code></pre>