MrJoes/tornadio2 — Issue #28: «on_event() got multiple values for keyword argument 'name'»
Author: yurtaev
Created: 2012-02-16 16:53:25+00:00
State: open

If key "name" in json data, then:
```python
ERROR:root:on_event() got multiple values for keyword argument 'name'
Traceback (most recent call last):
File "/Users/yurtaev/PycharmProjects/tornado_bag/tornadio2/session.py", line 404, in raw_message
ack_response = conn.on_event(event['name'], **str_args)
TypeError: on_event() got multiple values for keyword argument 'name'
```

because:

> def on_event(self, **name**, *args, **kwargs):
via. https://github.com/MrJoes/tornadio2/blob/master/tornadio2/conn.py#L154

**python**

```python
@event
def echo(self, **kwargs):
return kwargs
```

**javascript**

```javascript
conn.emit("echo", {name:"test"}, function(data){console.dir(data)})
```