createSubscriber error handler unit test

Signed-off-by: OwenPatey <owen_patey@hotmail.com>
Implement createSubscriber() in production

Signed-off-by: OwenPatey <owen_patey@hotmail.com>
Test that first argument is forwarded.

Signed-off-by: OwenPatey <owen_patey@hotmail.com>
forward socket in createSubscriber()

Signed-off-by: OwenPatey <owen_patey@hotmail.com>
Update examples to use createSubscriber()

Signed-off-by: OwenPatey <owen_patey@hotmail.com>