Simple chat with ChatFarm
If you're looking for a simple chat widget for you site or want to create your own, I recommend you to take a look at http://www.chatfarm.net.
It's a cloud service, that I've been developing for the last year. It provides 3 layers of integration:
- simple widget
- JavaScript API for deeper integration
- open protocol based on WebSockets
Here's an example of how you can create the widget:
<script src="http://sdk.chatfarm.net/v0/sdk.js"></script>
<div id="chat" style="width: 400px; height: 300px;"></div>
<script type="text/javascript">
chatfarm.init(["widget"], function (widget) {
new widget.Chat({
container: "#chat",
title: "Getting Started Chat",
app: "<your application id>",
channel: "<you channel id>",
mode: "guest"
});
});
</script>
The service is in beta stage and I will appreciate a feedback and will be glad to provide support for users.
Written by Dmitry Golubets
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Api
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#