I've built my Websocket API with `AWS API Gateway` and `AWS Lambda`.

I can connect with it well, but I have trouble with disconnect.

Let's see the code.

**My React Code**

```js
import React from 'react';
import Sockette from 'sockette';

function socketHandler(uid) {
    const wss = new Sockette(`wss://MY_API_GATEWAY_URL.execute-api.ap-northeast-2.amazonaws.com/dev?groupId=GROUP_ID&uid=${uid}`, {
    timeout: 1000,
    maxAttempts: 10,
    onopen: (e: any) => { console.log(e); console.log('Websocket is connected') },
    onmessage: (e: any) => {
      console.log(e.data);
    },
    onclose: (e: any) => { console.log(e); console.log('Websocket is disconnected'); }
  });
  return wss;
}

const SocketForm = (props) => {
  const [socket, setSocket] = React.useState(null);
  const connect = () => {
    setSocket(socketHandler('MY_UID'));
  }
  const disconnect = () => {
    socket.close();
    setSocket(null);
  } 
  return(
    <div>
      <button onClick={connect}>Connect</button>
      <button onClick={disconnect}>Disconnect</button>
    </div>
  )
}

```

**My Lambda function code**

```js
export const connectionHandler = async (event) => {
  const { groupId, uid } = event.queryStringParameters; //It occurs ERROR with DISCONNECT

  if(event.requestContext.eventType === 'CONNECT'){
    // I can store connectionID with groupId and uid.
    // STORE connectionId to DB
  }else if(event.requestContext.eventType === 'DISCONNECT'){
    // DELETE connectionId from DB
  }
  return { statusCode: 200, body: JSON.stringify({}) }
}

```

I don't know why it doesn't pass `queryStringParameters` when it disconnected.