https://github.com/xpl/skychat
An example of WebRTC chat/paint app with distributed message history
https://github.com/xpl/skychat
Last synced: over 1 year ago
JSON representation
An example of WebRTC chat/paint app with distributed message history
- Host: GitHub
- URL: https://github.com/xpl/skychat
- Owner: xpl
- License: other
- Created: 2016-03-25T23:43:53.000Z (over 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-10-05T08:27:54.000Z (almost 10 years ago)
- Last Synced: 2025-01-16T02:42:21.074Z (over 1 year ago)
- Language: HTML
- Size: 510 KB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Skychat
An example of WebRTC chat/paint app with distributed message history saving. You can embed it to HTTP 404 or 500 page, to let users hang around even when server is not working :)
Probably wont work if has too many peers (> 100), because the history synchronization algorithm is awful. To make it working on your own domain, you need to obtain a free WebRTC API key at [developer.temasys.com.sg](http://developer.temasys.com.sg/) (they provide peer tracking service, which is required to make WebRTC work).
Does not work in Safari (due to lack of WebRTC support). Actually, it can work, if your disable the `hasNativeRTCSupport ()` check in JS code, but it will ask users to install a third-party plugin (developed by Skylink), and it can be quite disturbing.
A framework used to structurize code: [Useless.js](https://github.com/xpl/useless). It delivers composable [traits](https://github.com/xpl/useless/wiki/%24trait) support to JavaScript along with some cool metaprogramming stuff. You may read more about it in the [project's wiki](https://github.com/xpl/useless/wiki).
P.S. In the corner, there's fancy brush size adjust. Flip it inside out to change color randomly.
## Live demo: [xpl.github.com/skychat](https://xpl.github.com/skychat)
[](https://xpl.github.com/skychat)