<commit_before>#The game logic and the user interface

This repository contains the game logic (node server) and also the client-side stuff needed for the swank-rats game!
You can find more information about the project in the [project documentation](https://github.com/swank-rats/docs).

## Installation
(See here ...)[https://github.com/swank-rats/docs/blob/master/INSTALL.md]

## SSL-Certificate
For HTTPS and WSS features (mandatory) you need to create a SSL-Certificate.

```
openssl req -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem
openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt
```<commit_msg>added readme section test ws<commit_after>#The game logic and the user interface
This repository contains the game logic (node server) and also the client-side stuff needed for the swank-rats game!
You can find more information about the project in the [project documentation](https://github.com/swank-rats/docs).

## Installation
(See here ...)[https://github.com/swank-rats/docs/blob/master/INSTALL.md]

## SSL-Certificate
For HTTPS and WSS features (mandatory) you need to create a SSL-Certificate.

```bash
openssl req -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem
openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt
```

## Test WS-Server
To test the WS feature use following command.

```bash
wscat --connect wss://localhost:3001 -p 8 -n
> {"to":"test","cmd":"echo","params":{"toUpper": true},"data":"testdata"}
  < TESTDATA
```
{'fraction_non_alphanumeric': 0.1248339973439575, 'fraction_numerical': 0.016600265604249667, 'mean_word_length': 4.306338028169014, 'pattern_counts': {'":': 5, '<': 4, '<?xml version=': 0, '>': 4, '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': '5053510', 'n_tokens_mistral': 505, 'n_tokens_neox': 469, 'n_words': 175}