Fixing "register" case in `examples/server-and-client.js`.
Merge pull request #65 from pvoisin/register-example-fix

Fixing "register" case in `examples/server-and-client.js`.