WebSockets

About This Space

This workspace deploys a custom server


Last updated on November 12, 2019

Public Permissions:   View   Open/Fork   Run   Comment  

Custom Server Template

This template uses a custom Node.js server rather than the built-in Express server used by NodeRun.

When configuring a custom server, find the main server file, select Properties, and mark the checkboxes labeled App Start File and Custom Server.

custom-server

To be accessible via NodeRun, your custom application server must listen on port 8081, which you can access dynamically by using process.env.PORT.

With custom servers, when you make changes to your server-side code, you must restart the application server. You can do this from the Server menu in the IDE.

Comments

Write Preview Markdown: bold italic code link
Post

5 years ago

Great work, KerimG!

Filters:

Popular Recent

custom-sql

1377

0

0

This interactive app prompts the user for key fields to lookup a database record and displays the results

1676

0

0

A simple app to be called from RPG. It leverages the node-isbn package to resolve ISBN numbers and get the book title

2042

0

0

This is a Profound API example on how to download files with authorization, using a modified openapi.json file and an API key.

1269

0

0

Bug Run IBM i call

868

0

0