文件名称:auth-stream:在公开流之前授权访问
文件大小:4KB
文件格式:ZIP
更新时间:2024-06-12 06:44:10
JavaScript
验证码流 在公开流之前授权访问 示例服务器 var Auth = require ( "auth-stream" ) , net = require ( "net" ) , through = require ( "through" ) net . createServer ( function ( stream ) { var secret = through ( function ( data ) { console . log ( "[SERVER]" , data ) this . emit ( "data" , "secret" ) } ) , auth = Auth ( secret , function ( user , pass ) { if (
【文件预览】:
auth-stream-master
----example()
--------backwards.js(860B)
--------forward.js(868B)
----LICENCE(1KB)
----README.md(910B)
----Makefile(0B)
----.gitignore(24B)
----index.js(2KB)
----package.json(757B)