Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zbicin/simple-chat-client-core


https://github.com/zbicin/simple-chat-client-core

Last synced: 12 days ago
JSON representation

Awesome Lists containing this project

README

        

# Simple Chat Client Core

Core of a client application for the [Simple Chat Server](https://github.com/zbicin/simple-chat-server).

## How to use?

The following code assumes that the [Simple Chat Server](https://github.com/zbicin/simple-chat-server) is running on `localhost:3001`.

```html

var core = new SimpleChatClientCore('localhost:3001');

core.login('Dummy user');

core.on('chat message', function(message) {
console.log('New message', message);
});

core.sendText('Hello');

```

For a detailed example, see [Simple Chat Client](https://github.com/zbicin/simple-chat-client).

## API Reference

TODO. See [Core.ts](src/Core.ts) for now.