archiving will be handled in server, so no push to offline necessary. This will make client more light.
NOTE always set ts to current time when you push or set the data.
To create a chat, necessary firebase components :
A nodejs based server will archive user online-offline state and store all chat data. This will make client more light.
NOTE always set ts to current time when you push or set the data.
##Chat Apps with Firebase :
To create a chat, necessary firebase components :
Clone the repo
$ git clone https://[email protected]/someuser/great-website.git greatwebsite
<?php | |
error_reporting(E_ALL | E_STRICT); | |
// | |
// Require modules | |
require 'Slim/Slim.php'; | |
\Slim\Slim::registerAutoloader(); | |
require 'Slim/Log.php'; | |
// Get Slim Extras from here https://github.com/codeguy/Slim-Extras |
<?php | |
// | |
// Here, we define route and its auth requirements | |
function getAcl() { | |
$acls = array( | |
"/secret" => array("member"), | |
"/moresecret" => array("member","subscribe") | |
); |
var B = require("bluebird/js/main/promise")(); | |
var Bproto = B.prototype; | |
var deferredPrototype = B.pending().constructor.prototype; | |
deferredPrototype.makeNodeResolver = function() { | |
return this.asCallback; | |
}; | |
function bind(fn, ctx) { |
Go to http://nodejs.org/ and choose your installer
$ ssh [email protected] -i MyAzure.key
// execute("GET","url","Body") | |
private class ApiClient extends AsyncTask<String, Void, String> { | |
// This runs in other thread | |
@Override | |
protected String doInBackground(String... params) { | |
String method = params[0]; | |
String url = params[1]; | |
String body = params[2]; |
<?xml version="1.0"?> | |
<settings> | |
<console change_refresh="10" refresh="100" rows="32" columns="120" buffer_rows="9999" buffer_columns="0" shell="" init_dir="E:\ArifSetiawan" start_hidden="0" save_size="0"> | |
<colors> | |
<color id="0" r="0" g="0" b="0"/> | |
<color id="1" r="0" g="0" b="128"/> | |
<color id="2" r="0" g="150" b="0"/> | |
<color id="3" r="0" g="150" b="150"/> | |
<color id="4" r="170" g="25" b="25"/> | |
<color id="5" r="128" g="0" b="128"/> |