• This function returns if the web socket passed is opened or not. In case it's opened, the function sends the request.

    Parameters

    • request: RequestMessage

      that has to be sent

    • ws: WebSocket

      web socket to check

    Returns boolean

    if the web socket is opened or not