Update contacts.php

May apply to #452
Update exampleFunctional.php

Fix by @NulByte
Fixes #461
Update socket.php

Another fix for #461
Implemented new code request token generation method