Coder Social home page Coder Social logo

acanichat's Introduction

AcaniChat - HTML5 WebSockets & Node.js chat on the iPhone

An open-source version of iPhone's native Messages app

AcaniChat screenshot

Features

Currently, AcaniChat features message persistence with Core Data and a chat view that allows you to send chat bubbles to yourself. Next, we'll implement sending messages over the network through the Acani chat server.

  • ConversationsViewController: List of conversations (UITableViewController)

    • Coming soon...
  • ChatViewController: One-on-one Chat (UIViewController)

    • chatContent (UITableView)
      • Identical UI (colors, layout, and font size) to iPhone's Messages app
      • Conditional timestamps (only shown every so often)
      • Delete edit-mode: Delete one message at a time or clear all at once
      • Trims whitespace on ends of messages; prevents sending blank messages
    • chatInput (UITextView)
      • sendButton.enabled = [chatInput isEmpty] ? NO : YES
      • Collapses & expands (between one & four lines) with content
      • becomes scrollable after content exceeds four lines

iOS Technologies

  • UIKit

    • UINavigationController
    • Custom UITableViewCells
    • Core Data
  • Coming Soon

    • ZTWebSocket & AsyncSocket

Design Practices

AcaniChat is simple yet modular, implementation-agnostic, and extensible.

  • Create views programmatically

Authentication: Facebook Connect & NSURLConnection

AcaniChat will implement authentication through various third-party accounts, such as Facebook, Twitter, GitHub, etc.

Connection: HTML5 WebSockets - ZTWebSocket & AsyncSocket

AcaniChat will soon be able to connect to web servers that support HTML5 WebSockets. It will use ZTWebSocket, built on top of AsyncSocket, to support a WebSockets connection.

Server: HTML5 WebSockets - Node.js & Redis

Using [Node.js][] & [node-websocket-server][], we built a chat server called [acani-chat-server][] (coming soon) that supports HTML5 WebSockets connections.

Chat: Redis PUB/SUB

The Acani chat server uses [Redis][] & the [Redis PUB/SUB functions][] to implement chat. Each user subscribes to the channel named after her username.

Contributors

Related Projects & Links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.