Is there any documentation about Socket.IO?
Its website just has a poor wiki and there is no full documentation explaining connect, emit, require and so on
As far as I know, no API documentation exists without inspecting the code on your own.
require is a part of node, not socket.io. See node docs: modules, the same applies for emit