:doc:`ChimeSDKMessaging <../../chime-sdk-messaging>` / Client / get_messaging_session_endpoint

******************************
get_messaging_session_endpoint
******************************



.. py:method:: ChimeSDKMessaging.Client.get_messaging_session_endpoint(**kwargs)

  

  The details of the endpoint for the messaging session.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-messaging-2021-05-15/GetMessagingSessionEndpoint>`_  


  **Request Syntax**
  ::

    response = client.get_messaging_session_endpoint(
        NetworkType='IPV4_ONLY'|'DUAL_STACK'
    )
    
  :type NetworkType: string
  :param NetworkType: 

    The type of network for the messaging session endpoint. Either IPv4 only or dual-stack (IPv4 and IPv6).

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Endpoint': {
              'Url': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Endpoint** *(dict) --* 

        The endpoint returned in the response.

        
        

        - **Url** *(string) --* 

          The endpoint to which you establish a websocket connection.

          
    
  
  **Exceptions**
  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ChimeSDKMessaging.Client.exceptions.ServiceFailureException`

  