Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zbicin/simple-chat-client-core
https://github.com/zbicin/simple-chat-client-core
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zbicin/simple-chat-client-core
- Owner: zbicin
- Created: 2018-04-01T16:44:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T21:42:38.000Z (over 6 years ago)
- Last Synced: 2024-10-18T13:56:51.095Z (19 days ago)
- Language: TypeScript
- Size: 188 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.