11/30/2012, 04:12 AM
|
#1 (permalink) |
|
Member
![]()
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? |
11/30/2012, 08:00 AM
|
#2 (permalink) | |
|
Homebrew Developer
![]() ![]() |
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
__________________
Author: 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 Quote:
GO OPEN WEBOS! People asked me for a donate link for my non-catalog work, so here you are:
|
|
![]() |
|
| Tags |
| node.js |
| Thread Tools | |
| Display Modes | |
|
|



