<commit_before>Named WebSockets PubSub Demo
===

A basic publish/subscribe demo on top of Named WebSockets.

#### Instructions

1. Run a Named WebSockets Proxy as detailed in the root project [README](https://github.com/richtr/namedwebsockets/blob/master/README.md#run-a-named-websockets-proxy).

2. Open `pubsub.html` in a browser window.

3. Open `pubsub.html` in another browser window.

4. Log in and out of one window and watch the state get applied to the other window (and vice-versa).<commit_msg>Update PubSub README<commit_after>Named WebSockets PubSub Demo
===

A basic [publish/subscribe](https://en.wikipedia.org/wiki/Publish–subscribe_pattern) demo on top of [Named WebSockets](https://github.com/richtr/namedwebsockets).

#### Instructions

1. Ensure a Named WebSockets Proxy is running as detailed in the root project [README](https://github.com/richtr/namedwebsockets/blob/master/README.md#run-a-named-websockets-proxy).

2. Open `pubsub.html` in a browser window.

3. Open `pubsub.html` in another browser window.

4. Log in and out on one window using the interface provided and watch the authorization state get applied to the other window (and vice-versa).
{'fraction_non_alphanumeric': 0.10034013605442177, 'fraction_numerical': 0.006802721088435374, 'mean_word_length': 4.631578947368421, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5077270', 'n_tokens_mistral': 362, 'n_tokens_neox': 356, 'n_words': 130}