def send(self): msg_signal = signal('msg_signal') msg_signal.send(self) # I can get msg use self.msg from socketio register function:)