# so-chat-client

> StackOverflow chat client

Latest version **0.0.2** (published 2020-01-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install so-chat-client
pnpm add so-chat-client
yarn add so-chat-client
bun add so-chat-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-01-08 |
| First published | 2020-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ben Fortune |
| Maintainers | xbenjii |

## Links

- npm: https://www.npmjs.com/package/so-chat-client
- npm.io page: https://npm.io/package/so-chat-client

## Dependencies (5)

- [ws](https://npm.io/package/ws.md) ^7.2.1
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.3
- [request](https://npm.io/package/request.md) ^2.88.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.5

## Recent versions

- 0.0.2 (latest) — 2020-01-08
- 0.0.1 — 2020-01-08

## README

# sobot

### Instructions
```JavaScript
import { Client } from 'so-chat-client';

(async () => {
	const client = new Client({
		email: 'foo@bar.com',
		password: 'foobar',
		mainRoom: 17
	});

	client.once('open', () => console.log('Connected'));
	client.once('close', () => console.log('Connection closed'));
	client.on('error', error => console.error(error));
	client.on('event', event => console.log(event));
	client.on('debug', message => console.log(message));

	try {
		await client.auth(); // Authenticates with SO and sets up the client
		await client.join(); // If you don't pass an ID, it will join the room you passed into the config
	} catch (error) {
		console.error(error);
	}
})();
```

---
_Source: https://npm.io/package/so-chat-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
