All the Socket behavior is defined here.

The app/config/socket.js is a function that receives the io object (an instance of and the sessionSockets (only if you has sessions enabled, it's an instance of as arguments, so you can create the rooms, messagens, listeners and so on.

All the socket advanced options must also be done here using the method io.set(property, value).