npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

socket-policy-server

v1.2.0

Published

Socket policy server for Unity3D & Adobe Flash

Downloads

11

Readme

nodejs_socket_policy_server

A simple and fast Unity3D/Flash Socket Policy server for node.js. For more information about socket policy files have a look at Loading Data in Flash/Flex/Air or Unity 3D Security Sandbox.

Installation

$ npm install -g socket-policy-server

Configuration

$ npm config --global set socket-policy-server:host <ip address or blank>

Sets the IP to listen to for serving the socket policy file. Pass a single IP address to listen only on that IP or leave blank to listen on all IPs. Default is blank (listen on all IPs, which is equivalent to IP 0.0.0.0).

$ npm config --global set socket-policy-server:port 843

Set the port to listen on. Default is 843.

$ npm config --global set socket-policy-server:timeout 5000

Sets the wait time in milliseconds after an incoming connection. The client has this much time to send its request string or it will be disconnected. Defaults to 5000.

$ npm config --global set logging true/false

Globally turns logging on/off (affects log_request_data and logfile options).

$ npm config --global set socket-policy-server:log_request_data false

Indicates if the server should log incoming request strings. Use only for debugging purposes! Defaults to false.

$ npm config --global set socket-policy-server:logfile /var/log/socket-policy-server.log

Sets the log file. Defaults to /var/log/socket-policy-server.log. Note that this file will be overwritten, not appended to!

$ npm config --global set socket-policy-server:error_logfile /var/log/socket-policy-server-error.log

Sets the error log file. Defaults to /var/log/socket-policy-server-error.log. Note that this file will be overwritten, not appended to!

$ npm config --global set socket-policy-server:policyfile socket_policy.xml

Sets the socket policy file that will be sent out. Defaults to socket_policy.xml (relative path). The embedded socket policy file only grants access to ports 80 and 443. If you need to change that, create your own file and set its path with this configuration option.

Usage

$ npm -g start socket-policy-server

Starts the server.

$ npm -g stop socket-policy-server

Stops the server.

$ npm -g restart socket-policy-server

Stops, then starts the server.

$ npm -g run-script socket-policy-server status

Prints out the current status of the server (mainly if it is running or not).

License

see file LICENSE