Use websockets by passing 'ws' param to attach_socket