def websocket_safe_read(self):

        data = ""
        while True:
            try:
                data += "{0}\n".format(self.websocket.recv())
            except SSLError as e:
                if e.errno == 2:
                    # errno 2 occurs when trying to read or write data, but more
                    # data needs to be received on the underlying TCP transport
                    # before the request can be fulfilled.
                    #
                    # Python 2.7.9+ and Python 3.3+ give this its own exception,
                    # SSLWantReadError
                    return ''
                raise
            return data.rstrip()
Returns data if available, otherwise ''. Newlines indicate multiple
dataset/ETHPy150Open slackhq/python-slackclient/slackclient/_server.py/Server.websocket_safe_read