LearnBoost/socket.io — Issue #567: Impossible to get socket.io from a Express route
Author: CodeWarriorAQ
Created: 2011-10-11 06:32:00+00:00
State: open

Jesus, i will be crazy! I have a simple form that i send data via

```html
form(method="post",action="/new")
```

In the the server, NodeJS with ExpressJS and Jade, i have a simple app.post. How can i do somethink like it:

```javascript
app.post('/new', function(req, res) {
socket.emit('test', {text: 'Hi! I will fuck your mind!'});
});
```

Please, help-me! Very very thanks!