Comments (6)
Check out firebase.com - They even have an example chat application and they offer a free version up to 500 megs.
from now.
But I have already started my module in Nowjs and now I am in a big stuff where I wanna call client side function in server side to show some output data on client side. If I tested on browser it will hit my client side but when I call it by mobile app it did not hit that function.
Can somebody help to sort out this issue.
from now.
I have emailed the contact address to see if they are dropping support on the project or if they know of anyone that is picking it up from there. I will try to notify others of what I find out if anything.
On Dec 28, 2012, at 12:40 AM, "lavinachitara" <[email protected]mailto:[email protected]> wrote:
But I have already started my module in Nowjs and now I am in a big stuff where I wanna call client side function in server side to show some output data on client side. If I tested on browser it will hit my client side but when I call it by mobile app it did not hit that function.
Can somebody help to sort out this issue.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/213#issuecomment-11727721.
from now.
My code in server.js
everyone.now.sayhi = function(my){
console.log(this.now.room);
nowjs.getGroup(this.now.room).now.writeSayHi('hi all');
};
and I am accessing this on client side [which is in javascript in mobile app]
now.sayhi('hello');
now.writeSayHi = function(msg_argument) {
console.log('I am in writing say hi');
}
Getting error on server console
[TypeError: Property 'writeSayHi' of object # is not a function]
TypeError: Property 'writeSayHi' of object # is not a function
at everyone.now.sayhi (C:\node\nodechat\nodechat_server.js:235:37)
at Socket.rfcHandler (C:\node\nodechat\node_modules\now\lib\user.js:111:19)
at Socket.EventEmitter.emit as $emit
at SocketNamespace.handlePacket (C:\node\nodechat\node_modules\now\node_modu
les\socket.io\lib\namespace.js:335:22)
at Manager.onClientMessage (C:\node\nodechat\node_modules\now\node_modules\s
ocket.io\lib\manager.js:487:38)
at WebSocket.Transport.onMessage (C:\node\nodechat\node_modules\now\node_mod
ules\socket.io\lib\transport.js:387:20)
at Parser. (C:\node\nodechat\node_modules\now\node_modules\socket
.io\lib\transports\websocket\hybi-07-12.js:40:10)
at Parser.EventEmitter.emit (events.js:96:17)
at opcodeHandlers.1.finish (C:\node\nodechat\node_modules\now\node_modules\s
ocket.io\lib\transports\websocket\hybi-07-12.js:289:16)
at Parser.opcodeHandlers.1.expectData [as expectHandler] (C:\node\nodechat\n
ode_modules\now\node_modules\socket.io\lib\transports\websocket\hybi-07-12.js:30�
Please help me to solve above issue. I want to call client side function on server in now namespace.
from now.
Declare writeSayHi
above now.sayhi('hello')
from now.
Thanks HardlyMirage, but I completed chat module completely for ios mobile :-) with group chat and one to one chat
from now.
Related Issues (20)
- installation fail :( HOT 3
- Can not read the property of 'ressource' undefined HOT 1
- No dev in six months. What is the future of NowJS? HOT 13
- Now module Installation failed ..... throwing error in windows
- npm install now ..... throwing error HOT 1
- Not working with Dojo due to Socket.io-client
- now.js and node autocluster core module
- Issue in limit of sending message in chat
- /nowjs/now.js ??
- website HOT 7
- Connecting to nodejs on http from https site HOT 1
- cannot finde module '../build/Release/nodeproxy.node'
- iOS app crashed in release mode while using Nowjs library
- Now doesn't work with latest sockets.io HOT 2
- Does not work with angular-cli: content.charCodeAt is not a function
- possible spam HOT 1
- Error: Cannot find module 'now' HOT 3
- Error: Cannot find module 'now'
- http://www.nowjs.com is not correct HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from now.