This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { verifyJWT } from 'feathers-authentication/lib/utils'; | |
| export default function socketAuth(app) { | |
| return (socket, next) => { | |
| const { cookie } = socket.request.headers; | |
| const cookies = cookie && cookie.split('; ') | |
| .reduce((prev, nextCookie) => { | |
| const [name, value] = nextCookie.split('='); | |
| return { | |
| ...prev, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var http = require('http'); | |
| var net = require('net'); | |
| /* | |
| * Usage : node node-proxy.js [-d] [-p 5555] | |
| */ | |
| var debugging = 0; |