<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wscall(self, method, query=None, callback=None):
 """Submit a request on the websocket"""

        if callback is None:
            self.sock.emit(method, query)
        else:
            self.sock.emitack(method, query, callback)