JavaScript client for CatSocket