

@asynchronous
def get(self, session_id):
    self.handle_session_cookie()
    self.disable_cache()
    self.callback = self.get_argument('c', None)
    if (not self.callback):
        self.write('"callback" parameter required')
        self.set_status(500)
        self.finish()
        return
    if (not self._attach_session(session_id, False)):
        return
    if (not self.session):
        return
    if (not self.session.send_queue):
        self.session.start_heartbeat()
    else:
        self.session.flush()

dataset/ETHPy150Open benoitc/gaffer/gaffer/sockjs/transports/jsonp.py JSONPTransport.get/original