webOS Nation Forums >  webOS Developers >  webOS Development > node.js modules
node.js modules
Like Tree1Likes
  • 1 Post By eblade

Thread Tools Display Modes
Old 11/30/2012, 04:12 AM   #1 (permalink)
Posts: 3
Hi folks,
webOS newbie here. I have a question related to node.js. WebOS documentation says developers can use third-party modules in their service. But all the examples I have seen so far use core modules like fs, http, path....etc. Is there any service or app that uses third-party modules (like express, connect, socket-io) ??

If I want to use the module should I create a local node_modules directory or is there a global directory in webOS for all node.js modules?
vinayr is offline   Reply With Quote
Old 11/30/2012, 08:00 AM   #2 (permalink)
Homebrew Developer

Posts: 3,532
You would place the module in your service directory, typically under node_modules or some such.

You probably can't use anything that makes use of native code, only pure javascript modules.

If you try to use socket.io, you'll need to delete the flash module from it, otherwise it will seriously get screwed up when trying to go through the app scanner (if you're trying to put something in the catalog)

I have a formerly fully functional (although the UI is absolute crap) app/service/synergy connector example at https://github.com/ericblade/whazaa
Remove Messaging Beeps patch for webOS 3.0.5, Left/Right bezel gestures in LunaCE,
Whazaa! Messenger and node-wa, SynerGV 1 and 2 - Google Voice integration, XO - Subsonic Commander media streamer, AB:S Launcher
(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
People asked me for a donate link for my non-catalog work, so here you are:
eblade is offline   Reply With Quote
Liked by MAMISHO likes this.



Thread Tools
Display Modes


Content Relevant URLs by vBSEO 3.6.0