This is a standalone socket example. Every callback function is used here and you can see the output in your Dev Tools console.