auth-stream:在公开流之前授权访问

时间:2021-05-23 12:57:30
【文件属性】:
文件名称:auth-stream:在公开流之前授权访问
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-23 12:57:30
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)

网友评论