def register_receive_callback(self, callback):
        """Register a raw buffer receive callback

        Parameters
        ----------
        callback : callable
            The callback. The raw buffer is passed as the first parameter
            to callback.
        """
        if callback not in self._recv_callbacks:
            self._recv_callbacks.append(callback)
dataset/ETHPy150Open mne-tools/mne-python/mne/realtime/client.py/RtClient.register_receive_callback/original