Removes deprecated hosts support.

Fixes a syntax error in chat example.