added socket.io server API signatures