title: how to initiate one-to-one chat with getstream.io?
body: <p>I'm trying to create slack like application using <a href="https://getstream.io/chat/docs/js/#initialize_channel" rel="nofollow noreferrer">getstream.io</a> chat SDK. In the documentation we can find out, how to initiate a channel to start group chat. But there is no any information about one-to-one chat. Does anyone knows how to initiate a one-to-one chat?</p>
  
  <p>code sample to create new channel for group chat</p>
  
  <pre><code>const client = new StreamChat('t5v25xyujjjq');
  await client.setUser(
      {
          id: 'jlahey',
          name: 'Jim Lahey',
          image: 'https://i.imgur.com/fR9Jz14.png',
      },
      'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiamxhaGV5In0.sFe9WvuHIKgQmgtEWFh708Nu_a2wy8Zj3Q8BJz7fDRY',
  );
  
  const channel = chatClient.channel('messaging', 'groupname', {
      name: 'Founder Chat',
      image: 'profile image url',
      members: ['user1', 'user2'],
  });
  const response = await channel.sendMessage({
      text: 'Josh I told them I was pesca-pescatarian'
  });
  </code></pre>