Fixed Socket IO stuff

The categories loop within the projects loop works now.