Include direction in io.js callbacks