fixed socket io emit function
Merge pull request #243 from crooy/master

Fixed Socket.IO header