Coffeescript wrapper for ws