View Single Post
  #1 (permalink)  
Old October 29th, 2013, 06:40 AM
wlazuardi wlazuardi is offline
Registered User
Points: 14, Level: 1
Points: 14, Level: 1 Points: 14, Level: 1 Points: 14, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile XMPP Strophe JS Best Practice

I'm familiarized with server-side programming (eg. PHP, ASP.NET, and so on), but not with a pure Javascript application (like Strophe.JS which is more likely client-side).

Some point that I concern about Strophe.JS:
  • Security
    Is it secure to make a pure Javascript application since the modern browser could see your code and even modify them (Inspect element)?
    Someone could be see your connection properties by looking your Javascript code.
  • Session State
    When I logged in to my application, is it possible to remember my session since Javascript couldn't establish session state like server-side programming language do (as I know). Is it possible to combining Strophe.JS with server-side programming?
  • Application Architecture
    So far, I always use Javascript just for View-Tier (eg. updating HTML interface), not for Controller-Tier. Is it possible to implement MVC framework on Strophe.JS? I mean using Strophe.JS for View-Tier and server-side programming for Controller-Tier?

What is the best practice for developing chat application using XMPP?

Sorry for my bad English, thanks in advance