Comments (2)
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.
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)
- window.setTimeout never triggers after 3s HOT 1
- Avoid Window popup HOT 2
- Window SetTimeout / SetInterval don't work when building from source HOT 2
- WebPage.onInitialized is not called when set HOT 7
- TriffleJS --render fails on http://livedoor.com/ HOT 11
- window.callPhantom and unhandled error logging are not available until onload event fires. HOT 6
- window.callPhantom doesn't trigger page.onCallback after page.load HOT 8
- page.onCallback() does not handle dates HOT 1
- Can trifleJS use Chakra instead of V8? HOT 3
- clipRect can not work well HOT 2
- Question: Any plans to make this work outside of windows? HOT 1
- System args not populating
- Render pages supplied as text
- TrifleJs in Windows Server
- Crash: Vector smash protection is enabled. HOT 1
- System.IO.FileNotFoundException HOT 1
- webpage method
- uriString can not be null exception when emulating
- trifleJS shut down & builds error :Please install Windows SDK 2010. HOT 1
- About command mode high concurrency HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from triflejs.