Giter Club home page Giter Club logo

Comments (2)

sdesalas avatar sdesalas commented on July 19, 2024

Hi Pushkar,

TrifleJS uses the underlying IE engine so Websockets will only supported in IE10 and above. Its not something that I can add or remove myself.

http://caniuse.com/#feat=websockets

Regards,
Steven

from triflejs.

sdesalas avatar sdesalas commented on July 19, 2024

While on the topic of IPC (Inter Process Communication):

Your options currently are (in my personal order of preference):

.1. Running a WebServer listener to consume data (or scripts) sent by another process then replying via POST message using WebPage.open() (HTTP JSON IPC)
.2. Executing files generated by another process in V8 context using phantom.injectJs(filename) then generating responses by writing to other files in response. (Filesystem IPC).

I'll also be implementing the child_process API in Phantom (at some point). This will add:

.3. Calling TrifleJS on command line, then using child_process API to call other executables (Batch IPC).

Steven

PS. WebSockets sounds like a convoluted way to implement IPC... or maybe I'm missing something? While on the consumer side it appears easy, the implementation itself is not simple. If its worth it I might attempt but there are a lot of things that are higher priority right now, like implementing PhantomJS API.

from triflejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.