open-index/open-npm huggingface dataset:
npm package: @only-chat/elasticsearch-store
Description: Elasticsearch storage for only-chat
Author: only-chat
Latest version: 1.0.1

# only-chat
This is an Elasticsearch messages store implementation for only-chat.

# Get started

```shell
npm i --save @only-chat/elasticsearch-store
```

```typescript
import { initialize as initializeStore, saveInstance } from '@only-chat/elasticsearch-store'
import { initialize as initializeClient, WsClient } from '@only-chat/client'

...

const store = await initializeStore(storeConfig);

const { _id: instanceId } = await saveInstance(appId);

initializeClient({queue, store, userStore, instanceId}, logger)

const ws = new WebSocketServer({ host, port })

ws.on('connection', s => new WsClient(s))
```
npm package: @only-chat/elasticsearch-user-store
Description: Elasticsearchn storage for only-chat
Author: only-chat
Latest version: 1.0.1

# only-chat
This is an Elasticsearch user store implementation for only-chat.

# Get started

```shell
npm i --save @only-chat/elasticsearch-user-store
```

```typescript
import { initialize as initializeUserStore } from '@only-chat/elasticsearch-user-store'
import { initialize as initializeClient, WsClient } from '@only-chat/client'

...

const userStore = await initializeUserStore(userStoreConfig);

initializeClient({queue, store, userStore, instanceId}, logger)

const ws = new WebSocketServer({ host, port })

ws.on('connection', s => new WsClient(s))
```
npm package: @only-chat/in-memory-queue
Description: In memory queue for only-chat
Author: only-chat
Latest version: 1.0.1

# only-chat
This is an in-memory queue implementation for only-chat.

# Get started

```shell
npm i --save @only-chat/in-memory-queue
```

```typescript
import { initialize as initializeQueue } from '@only-chat/in-memory-queue'
import { initialize as initializeClient, WsClient } from '@only-chat/client'

...

const queue = await initializeQueue()

initializeClient({queue, store, userStore, instanceId}, logger)

const ws = new WebSocketServer({ host, port })

ws.on('connection', s => new WsClient(s))
```
npm package: @only-chat/in-memory-store
Description: In memory storage for only-chat
Author: only-chat
Latest version: 1.0.1

# only-chat
This is an in-memory message store implementation for only-chat.

# Get started

```shell
npm i --save @only-chat/in-memory-store
```

```typescript
import { initialize as initializeStore, saveInstance } from '@only-chat/in-memory-store';
import { initialize as initializeClient, WsClient } from '@only-chat/client'

...

const store = await initializeStore();

const { _id: instanceId } = await saveInstance();

initializeClient({queue, store, userStore, instanceId}, logger)

const ws = new WebSocketServer({ host, port })

ws.on('connection', s => new WsClient(s))
```
npm package: @only-chat/in-memory-user-store
Description: In memory users storage for only-chat
Author: only-chat
Latest version: 1.0.1

# only-chat
This is an in-memory user store implementation for only-chat.

# Get started

```shell
npm i --save @only-chat/in-memory-user-store
```

```typescript
import { initialize as initializeUserStore } from '@only-chat/in-memory-user-store'
import { initialize as initializeClient, WsClient } from '@only-chat/client'

...

const userStore = await initializeUserStore();

initializeClient({queue, store, userStore, instanceId}, logger)

const ws = new WebSocketServer({ host, port })

ws.on('connection', s => new WsClient(s))
```
npm package: @only-chat/rabbitmq-queue
Description: RabbitMQ queue for only-chat
Author: only-chat
Latest version: 1.0.1

# only-chat
This is a RabbitMQ queue implementation for only-chat.

# Get started

```shell
npm i --save @only-chat/rabbitmq-queue
```

```typescript
import { initialize as initializeQueue } from '@only-chat/rabbitmq-queue'
import { initialize as initializeClient, WsClient } from '@only-chat/client'

...

const queue = await initializeQueue(queueConfig)

initializeClient({queue, store, userStore, instanceId}, logger)

const ws = new WebSocketServer({ host, port })

ws.on('connection', s => new WsClient(s))
```