<commit_before>.. changelog

===============
Release History
===============

0.4.7 develop
-------------

<commit_msg>Updating changelog with javascript improvements<commit_after>.. changelog

===============
Release History
===============

0.4.7 develop
-------------
Improvements to the javascript API:

* Performing reconnection attempts when the first connection (on instantiation) fails.
* Adding the 'close()' method to enable closing the connection explicitly. When the connection is closed calling this method, there will be no reconnection attempts. In order to connect again, the client must be re-instantiated.
* Adding 'connecting' and 'disconnected' callback options. The first is fired right before the Websocket is being instantiated, while tha last is fired after connection is closed.
* Adding the following methods to check websocket status: is_connecting(), is_connected(), is_closing(), is_closed().

{'fraction_non_alphanumeric': 0.14967462039045554, 'fraction_numerical': 0.006507592190889371, 'mean_word_length': 4.697530864197531, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5172248', 'n_tokens_mistral': 232, 'n_tokens_neox': 216, 'n_words': 103}