node.js

Node.js is a relatively new server-side technology that allows real-time web services, and other TCP/IP applications, to be written in Javascript. Unlike PHP, in which logic can be "blocked" waiting for I/O resources to become available, node.js logic runs "asynchronously", with logic executed seemingly in parallel. Applications like real-time chat are trivial in node.js. This working group aims to explore how node.js can be leveraged to provide real-time services that integrate with Drupal sites.

markwk's picture

Node.js Hosting?

Anybody tried any of the various node.js hosting providers out there? I know it's easy to get node.js setup on linux os but I hate micro-managing servers anymore so I'm keen to get some solid node.js specific hosting for node.js api module.

I tried joyent's https://no.de awhile back but had some issues there. Anyone successful getting one of these working with the current code?

markwk's picture

Node.js with BOA

Has anyone gotten node.js to play nicely with BOA recently? I got this working about 6 months ago (BOA site with a separate node.js server connecting) but trying again now and seems to be some funky issue. I might be missing something small but as far as I can tell messages are not being sent to node.js OR they are being sent really slowly. There seems to be something catching on the server perhaps. Maybe I need to disable caching or something.

Just wanted to check if anyone else had any tips here. Thanks...

typhonius's picture

Nodejs to update text in block

This might seem like a simple issue however I'm trying to get a module to change the content of a block whenever it receives a listening event from the server. I've got my listener set up and that works fine as I've called the nodejs function which pushes it to users and that works. However I'm a bit at a loss as to how I can replace block content.

in short
Event listener works
want to replace block content upon event

First alpha release of Chatroom 7.x-2.x

This is the first release that is integrated with and relies on Node.js module.

There are many more features to add, but this alpha opens up an exciting new world for Chatroom module.

Bug reports, feature requests and co-maintainers welcome!

https://drupal.org/node/1457150

First release candidate of Node.js module now available

The first release candidate of the Node.js module is ready to go!

Please kick the tires and help me find any release blocker bugs before I pull the trigger on 1.0 in a week or so.

https://drupal.org/node/1457138

olav's picture

Redis alternative to node.js as publish/subscribe server?

Hi, I've just briefly read through server.js. It basically implements a publish/subscribe server, right?

I wonder if somebody has compared this custom Javascript code to what dedicated publish/subscribe servers might do out of the box. Particularly, I think of Redis and its pub/sub capabilities. Redis can do other things as well, like persistence and replication so it might be well worth looking at it not just as an alternative to Memcache.

Both of these engines may even be made swappable by standardizing on an API between Drupal and the pub/sub server.

Just my 2¢ on this fascinating new stuff.

-- Olav

Read more

Node JS Server other than Drupal server

Hey, i have my first steps with node.js and drupal. At first, I have installed Node.js on an ubuntu 10.11 Server. Drupal with Apache runs in another Server. Now I have no idea how to install the application to get node.js work.
What I understand is to have a directory on the node.js server where I put the server.js in. Now if i try to start the node.js server with

cd /var/node/server  //the server.js is in here
node server.js

But that throws an exception saying "Error: Cannot find module 'express'"

Read more
digodrupal's picture

How to seach text from .txt file

i need this help on drupal.

i have a text file and file name is C:\wamp\www\mysite\sites\default\files\abc.txt. in this file is;

aaaaa bbb
ccccc ddd
eeeee fffff

if i type aaaa in the search box and hits enter means the output should come with the node containing the word aaaa and this this text document also.

This will be shown in search output

is there any module available for that?

thanks.

markwk's picture

Node.js Hosting?

So, I've gotten node working locally so now it's time to push it on to a server. I don't really want to mix it with the server that's running my sites fine, so what should I do for a node.js server with Drupal in mind?

Node.js module 1.0 plans

i'm planning to release node.js module as a 1.0 in the next 4 weeks or so.

soooo, i'm doing some of the 'really should be fixed before 1.0' tasks. this includes:

  • moving a bunch of stupidly-hard-coded url settings from server.js into nodejs.config.js, and documenting them all in nodejs.config.example.js
  • properly prepending a basePath to all http methods so auth will work as expected for non-default urls
  • not allowing server.js to run with a blank serviceKey by default
  • renaming 'backendSettings' to 'settings'
  • getting rid of references to 'Drupal'
Read more
markwk's picture

Embedding a Node.js App within Drupal?

I posted this idea in the drupal-ed group: http://groups.drupal.org/node/174849 Basically, I've built an integration that allow video chat to come to groups rather easily but I'm still missing text chat. Drupal Chat Room just isn't a very good solution considering what node.js is capable of.

I'm a totally node.js noob. So my question is this: how can I integrate/embed a node.js chat app within drupal (specifically Drupal 6)?

Read more

Lead Programmer | MeFundee, Inc.

Employment type: 
Full time
Employment type: 
Part time
Telecommute: 
Allowed

Interested in making a career out of node.js? We're working on reforming sponsorship, the last great frontier of advertising, and we're making the most out of node.js. Check out the links to the right of http://mefundee.com. Tell your friends! Email me your questions, your cover letter as to where you might fit in, and your resume to dave@mefundee.com.

Regards,
Dave VanZanten

Nodejs.module Drupal 6 branch

Thanks to the efforts of julien, we now have a Drupal 6 port of the Nodejs module.

It still needs work, so anyone who asked for a D6 port is invited to get the code and test it! Bug reports and patches welcome.

Node.js code sprint

Start: 
2011-04-24 (All day) Australia/Sydney
Organizers: 

Node.js code sprint! You know you want one! Below is a (by no means) complete list of things we want to hack on:

  • Improving the settings pages
  • Improving documentation
  • Making sockets writeable from client connections as well as from Drupal
  • Adding Node.js integration to existing Drupal modules
  • Working on Node.js server extension code
  • Your idea here!

The tentative date for the sprint is Sunday, April 24th.

Read more

Chatroom port to D7 under way

the drupal 7 port of the chatroom module is under way:

http://drupal.org/node/904006#comment-4329664

please follow that issue if you can help with code or testing.

this port will lay the basis for integrating node.js as a backend for chatroom.

Nodjs.module alpha4 released

Hot off the press:

http://drupal.org/node/1100868

What else do people want to see before we start considering beta tags?

Port chatroom module to D7 and integrate with nodejs.module

EDIT - this issue is now defunct, superseded by:

http://groups.drupal.org/node/137754


The chatroom module needs a D7 upgrade.

As maintainer of that module and the nodejs.module, i'd like to see chatroom ported to D7 and integrated with nodejs.

I'm happy to mentor the process.

mcantelon's picture

Intro presentation to Node (for a Drupal audience)

I attended the Node.js BOF at Drupalcon today and someone brought up the difficulty of getting a handle on the Node ecosystem. For Drupallers new to Node, a presentation I gave last Winter in Vancouver might be useful:

http://www.slideshare.net/mcantelon/introduction-to-nodejs-perspectives-...

Let me know if you have any questions about the content.

First alpha release of nodejs.module1

Just in time for Drupalcon Chicago, i've rolled the first alpha release of the nodejs.module.

http://drupal.org/node/1082646

I've put a screencast of some of the the module can do on youtube:

http://www.youtube.com/watch?v=UV8lbdJfESg

The module is definitely not ready for prime-time, but its getting useful enough that i need more feedback to take it to the next level.

simple API added to nodejs.module for other modules to use

I've now implemented a simple API for other modules to use Node.js functionality from Nodejs module.

Still pre-alpha code, but would love to get some more eyes on it, feedback more than welcome.

Subscribe with RSS Syndicate content

node.js

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week