def __init__(self, httprequest, data):
    super(WebSocketRpcRequest, self).__init__(httprequest)
    self.params = data.get('params', {})
    self.id = data.get('id')
    self.context = self.params.pop('context', dict(self.session.context))
def __init__(self, httprequest, data):
    super(WebSocketRpcRequest, self).__init__(httprequest)
    self.params = data.get('params', {})
    self.id = data.get('id')
    self.context = self.params.pop('context', dict(self.session.context))