Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create A Websocket Server on Apex.Oracle.com

Edwin TOct 11 2015 — edited Oct 11 2015

I read somewhere that you have access to node.js directly from Oracle Apex. Is this available on Apex.Oracle.com for testing and if so, is it possible to create your own websocket server instead of using a hosted server outside server. In other words, are all the required node.js npm packages installed on Apex.Oracle.Com. I would like to create a simple websocket server  then incrementally improve on it so it can handle whatever clients connected require.

If available on a workspace on apex.oracle.com, where are the node.js files and how can I install additional packages if needed e.g.  how would I run the command "npm install --save socket.io" if the package is not already installed.

e.g. -- Javascript snippet to create the custom server

var WSServer = require("websocket").server;

var clients = [];

var server = require("http").createServer();

........

.......

server.listen([[PORT]]);

I can do this easily on my local server, but am wondering how to access all of this on Apex.Oracle.Com.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2015
Added on Oct 11 2015
1 comment
1,509 views