'Add a callback notification when the connection has opened.
:param method callback_method: Callback to call when open'

def add_on_open_callback(self, callback_method):

    self.callbacks.add(0, self.ON_CONNECTION_OPEN, callback_method, False)
