fixed track by for messages in chat2; fixed typescript
Merge pull request #19 from uProxy/iislucas-chat2-fix

fixed track by index for messages in chat2 & typescript d.ts for tcp and udp