New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

loop-server-fast

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loop-server-fast

A faster NodeJS reader to complement the AtomJump Loop Server.

  • 0.1.10
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by143.75%
Maintainers
1
Weekly downloads
 
Created
Source

loop-server-fast

A faster NodeJS reader plugin to complement the AtomJump Loop Server (see http://atomjump.com). This speeds up the core of the AtomJump Loop Server PHP scripts, to allow for a large increase in the number of simultaneous users, with the same hardware.

Requirements

  • NodeJS >= 4.x
  • AtomJump Loop Server >= 0.5.22
  • Linux server (or any machine with NodeJS)

Server Setup

Follow the instructions to set up the Loop Server as a PHP script.

Then to install the daemon:

sudo npm install pm2@latest -g
sudo npm install loop-server-fast -g
npm config set loop-server-fast:configFile /path/to/your/loop-server/config/config.json
npm config set loop-server-fast:messagesFile /path/to/your/loop-server/config/messages.json

To your Loop Server's config/config.json, add the following

{
   "staging": {
	  ...
	  "readPort" : "3277",								[you can choose a port number here]
      "httpsKey" : "/path/to/your/https.key",			[optional, for https only]
      "httpsCert": "/path/to/your/https.crt",			[optional, for https only]
	  ...	  
	}
}

(note, remove the [comments in square brackets above])

Now run and set up the script to run after a server reboot.

pm2 start "$(npm prefix -global)/lib/node_modules/loop-server-fast/loop-server-fast.sh"
pm2 save
pm2 startup     	#and run the command it outputs, to get autostart at boot-up.

Open your firewall e.g. on Ubuntu (also see further details at https://www.digitalocean.com/community/tutorials/how-to-setup-a-firewall-with-ufw-on-an-ubuntu-and-debian-cloud-server)

sudo ufw allow 3277/tcp

Now run your staging installation interface in a browser. It should continue as normal, but your NodeJS server is handling most read requests.

Starting and stopping

pm2 start loop-server-fast
pm2 stop loop-server-fast

Going live

Then, to your Loop Server's config/config.json, add the following

{
   "production": {
	  ...
	  "readPort" : "3277",								[you can choose a port number here]
      "httpsKey" : "/path/to/your/https.key",			[optional, for https only]
      "httpsCert": "/path/to/your/https.crt",			[optional, for https only]
	  ...	  
	}
}

(note, remove the [comments in square brackets above])

Switch the NodeJS server to the Loop Server's production settings with:

npm config set loop-server-fast:production true
pm2 restart loop-server-fast

(or back to staging with 'false')

Troubleshooting

You can track logs with

pm2 logs

If, you are on a small machine (e.g. 512MB RAM), and the install fails, try this

sudo npm install loop-server-fast -g -production 

FAQs

Package last updated on 17 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc