Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By eblade
  1.    #1  
    Hi folks,
    webOS newbie here. I have a question related to node.jsjsjs. $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.jsjsjs $modules$?
  2. #2  
    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
    (1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
    GO OPEN WEBOS!
    People asked me for a donate link for my non-catalog work, so here you are:
    MAMISHO likes this.

Tags for this Thread

Posting Permissions