Thanks I will fork and see if I can make something for people wanting instructions to setup a server (Ubuntu, SSL, NGINX, NodeJS and MySQL) to save the chats to a MySQL database, load history on connect, and be able to connect to multiple chat rooms (server side press based on the rooms they join). With a full featured Corona sample project. Sorry I am a Git newbie
Up!
Just pushed some fixes
Hi.
Iâm trying to build a chat system. with noobhub will iâm able to tell when someone enters a room or leave (presence), can i store all conversations of the rooms in a mysql database? rooms even if they are empty still exists (i need this feature)?
if any of this is possible where can i learn to do it?
regards,
Carlos
Hey @carloscosta, what youve mentioned its all possible to build, but will require additional coding.
Noobhub is only a Pub/sub system - read about it more on the internetz. It provides messaging wia channels only.
Youâll have to implement history-on-the-database yourself in the nodejs code.
As for presence - also via additional coding on the server side OR via service-messages, when someone send âwho_is_hereâ message on the channel, and everyone respond with âi_am_hereâ.
I love Noobhub (thx over torment) and have forked it to share how I am extending it to fit into my next app. I want to have it save history to a database, multiple channels and blocking etc. this may increase the overhead of the pongs (with JSON arrays of extra data like (new channel, channel destroyed, message deleted and other features). Iâll post when I get start adding to my forked copy. Alternatively I can add entry points to a API that allows the user to getUsers, GetChannels, GetMessages wax and just let Noobhub do the ping/pongs and messaging.
Last night I was working on my account signup (via a web server/PHP), email verification and unsubscribed.
P.S I added a new PHP guide on in memory caching at http://www.fearby.com that I will use to cache certain calls to PHP MySQL queries (not NodeJs but good for caching other data on websites outside of NodeJs and Opcacge).
overtorment, thank you for your response. i still think the information regarding of using noobhub needs to be improved. iâve read lots of APIs about chat systemsâŚnoobhub was my last resource only because of this.
iâm not very confortable using node.js and changing it.
If i need help in the server side, is anyone here able to help me? ofc it will be a payed help. if anone is interesting please private msg me. i will give you details of the project.
regards,
Carlos.
Hello! did anyone came out with a way to connect to the server from a flash client, either actionscript 2 (preferred) or actionscript 3?
Thank you!!
Hi @yuvallahav. Welcome to the Corona Labs forums. These forums are for Corona SDK, Corona Enterprise and CoronaCards customers. While some of our members have a Flash background, this forum isnât likely going to be of much help. You might be better asking this question on Noobhubâs site or a Flash developer site somewhere.
Rob
Hi I review this topic and somewhere on the bottom some use openshift to use as a server and it happen to me too I couldnât get the client to connect, the thing was in http protocol you need to use the port 8000 ânoobhub.new({ server = âyour-site.comâ; port = 8000; });â It is working but another problem show up "ping sent
Apr 10 13:41:48.695 Noobhub publish error: closed  sent 0 bytes
Apr 10 13:41:48.695 Noobhub: attempt to reconnectâŚ" if anyone knows how to resolve it will be cool.
Thanks OverTorment
I just set this up in seconds and can getting ping/pongâs and recoveries after I restart the node service.Â
I have played a bit more and have added debug info my server and am building a simple tester UI.
Is it ok to fork so I can make a full featured tester corona app and make the node server save to mysql so reconnecting people can view the history while they are away and save chats?
You are welcome!
Youâre also free to do any modifications, but saving history to database wonât be accepted to main repository; but you can always commit  it in your forked repo.
The reason for this is that Noobhub is only a Pub/Sub server, not the storage for queues or smth.
Some users of Noobhub have hundreds of messages per second, and if Noobhub would store those messages it would add a headache to keep database perform well.
Thanks I will fork and see if I can make something for people wanting instructions to setup a server (Ubuntu, SSL, NGINX, NodeJS and MySQL) to save the chats to a MySQL database, load history on connect, and be able to connect to multiple chat rooms (server side press based on the rooms they join). With a full featured Corona sample project. Sorry I am a Git newbie
Hi.
Iâm trying to build a chat system. with noobhub will iâm able to tell when someone enters a room or leave (presence), can i store all conversations of the rooms in a mysql database? rooms even if they are empty still exists (i need this feature)?
if any of this is possible where can i learn to do it?
regards,
Carlos
Hey @carloscosta, what youve mentioned its all possible to build, but will require additional coding.
Noobhub is only a Pub/sub system - read about it more on the internetz. It provides messaging wia channels only.
Youâll have to implement history-on-the-database yourself in the nodejs code.
As for presence - also via additional coding on the server side OR via service-messages, when someone send âwho_is_hereâ message on the channel, and everyone respond with âi_am_hereâ.
I love Noobhub (thx over torment) and have forked it to share how I am extending it to fit into my next app. I want to have it save history to a database, multiple channels and blocking etc. this may increase the overhead of the pongs (with JSON arrays of extra data like (new channel, channel destroyed, message deleted and other features). Iâll post when I get start adding to my forked copy. Alternatively I can add entry points to a API that allows the user to getUsers, GetChannels, GetMessages wax and just let Noobhub do the ping/pongs and messaging.
Last night I was working on my account signup (via a web server/PHP), email verification and unsubscribed.
P.S I added a new PHP guide on in memory caching at http://www.fearby.com that I will use to cache certain calls to PHP MySQL queries (not NodeJs but good for caching other data on websites outside of NodeJs and Opcacge).
overtorment, thank you for your response. i still think the information regarding of using noobhub needs to be improved. iâve read lots of APIs about chat systemsâŚnoobhub was my last resource only because of this.
iâm not very confortable using node.js and changing it.
If i need help in the server side, is anyone here able to help me? ofc it will be a payed help. if anone is interesting please private msg me. i will give you details of the project.
regards,
Carlos.
stupid question. Do I have to run the server on a real âserverâ? When I tried on my localhost (command line in win10), it doesnât show anything and returned. Also, the command I run is node node.js rather than nodejs node.js. Is it because my nodejs is new?
Yeah, on newest node command to run is ânodejsâ. Strange that thereâs no output, try running ânodejs --versionâ to see if your node even works.
And  yeah, youâll need a server when youâre launching in production. For development localhost is fine.
Hi Overtorment . Thx for ur reply. I run node node.js with my PC local host and it just doesnât show anything in the command window (jump to a new "c:\â). Nodejs node.js does not work since there is only node.exe in the node installation folder.
Hello! did anyone came out with a way to connect to the server from a flash client, either actionscript 2 (preferred) or actionscript 3?
Thank you!!