Squad.js

An open source chat written in Typescript.

About

The purpose of this library is to provide a simple and easy to use instant messaging module.

Check Code section for more information on how to use Squad.js.

You can help develop Squad.js on Github.

Code

Node.js server (app.js)

Import chat back-end on the server

var squad = require('../dist/server')(server);

html (index.htm)

Import chat template and css

<script src="../dist/squad.js"></script>
<link rel="stylesheet" href="../dist/squad.css">
<link rel="import" href="../dist/squad.html">

Javascript (main.js)

Instantiate a chat

var chat = new Squad.Chat();

Contact me

Feel free to ask me about my work, give me suggestions, or just to say hi.