'send a numpy array with metadata'

def send_array(self, A, flags=0, copy=True, track=False):

    md = dict(dtype=str(A.dtype), shape=A.shape)
    self.send_json(md, (flags | zmq.SNDMORE))
    return self.send(A, flags, copy=copy, track=track)
