'Write some data bytes to the transport.
This does not block; it buffers the data and arranges for it
to be sent out asynchronously.'

def write(self, data):

    if (not isinstance(data, (bytes, bytearray, memoryview))):
        raise TypeError('data:    expecting    a    bytes-like    instance,    got    {!r}'.format(type(data).__name__))
    if (not data):
        return
    self._ssl_protocol._write_appdata(data)
