Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-gateway

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-gateway - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

17

index.js

@@ -38,6 +38,15 @@ 'use strict'

// processing websocket routes
registerWebSocketRoutes({
routes: opts.routes.filter(route => route.proxyType === 'websocket'),
server: router.getServer()
})
const wsRoutes = opts.routes.filter(route => route.proxyType === 'websocket')
if (wsRoutes.length) {
if (typeof router.getServer !== 'function') {
throw new Error(
'Unable to retrieve the HTTP server instance. ' +
'If you are not using restana, make sure to provide an "app.getServer()" alternative method!'
)
}
registerWebSocketRoutes({
routes: wsRoutes,
server: router.getServer()
})
}

@@ -44,0 +53,0 @@ // processing non-websocket routes

'use strict'
const WebSocket = require('faye-websocket')
const { onOpenNoOp } = require('./default-hooks').websocket
module.exports = (config) => {
const WebSocket = require('faye-websocket')
const { routes, server } = config

@@ -8,0 +9,0 @@

{
"name": "fast-gateway",
"version": "3.1.0",
"version": "3.1.1",
"description": "A Node.js API Gateway for the masses!",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,4 +6,6 @@ # fast-gateway

A super fast, framework agnostic Node.js API Gateway for the masses ❤️
> Since v2.3.0, [AWS Lambda](https://www.youtube.com/watch?v=EBSdyoO3goc) proxying integration is supported via [`http-lambda-proxy`](https://www.npmjs.com/package/http-lambda-proxy) 🔥
> Since v2.3.0, [AWS Lambda](https://www.youtube.com/watch?v=EBSdyoO3goc) proxying integration is supported via [`http-lambda-proxy`](https://www.npmjs.com/package/http-lambda-proxy) 🔥
> Since v3.1.0, WebSockets proxying is supported via [`faye-websocket`](https://www.npmjs.com/package/faye-websocket) 🔥
## Medium articles:

@@ -10,0 +12,0 @@ - https://itnext.io/a-js-api-gateway-for-the-masses-a12fdb9e961c

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