Node.JSServerSockJS-node.zip

时间:2022-08-05 00:45:53
【文件属性】:

文件名称:Node.JSServerSockJS-node.zip

文件大小:60KB

文件格式:NONE

更新时间:2022-08-05 00:45:53

开源项目

SockJS-node is a Node.js server side counterpart of SockJS-client browser library written in CoffeeScript. To install sockjs-node run: npm install sockjs (If you see rbytes dependecy failing, don't worry, it's optional, SockJS-node will work fine without it.) An simplified echo SockJS server could look more or less like: var http = require('http'); var sockjs = require('sockjs'); var echo = sockjs.createServer(); echo.on('connection', function(conn) { conn.on('data', function(message) { conn.write(message); }); conn.on('close', function() {}); }); var server = http.createServer(); echo.installHandlers(server, {prefix:'/echo'}); server.listen(9999, '0.0.0.0'); 标签:SockJS 分享 window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": [], "bdPic": "", "bdStyle": "1", "bdSize": "24" }, "share": {} }; with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' ~(-new Date() / 36e5)];\r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \u8f6f\u4ef6\u4e0b\u8f7d\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid: 'cysXjLKDf', conf: 'prod_33c27aefa42004c9b2c12a759c851039' });


【文件预览】:
sockjs-node-master
----.travis.yml(69B)
----.eslintrc(294B)
----.nvmrc(10B)
----index.js(342B)
----package.json(1KB)
----.github()
--------FUNDING.yml(68B)
----.prettierrc(47B)
----tests()
--------.eslintrc(41B)
--------test_server()
----LICENSE(1KB)
----package-lock.json(38KB)
----.npmignore(58B)
----AUTHORS(318B)
----examples()
--------.eslintrc(41B)
--------haproxy.cfg(1KB)
--------express()
--------hapi()
--------echo()
--------.gitignore(18B)
--------multiplex()
--------koa()
----.gitignore(45B)
----CHANGELOG.md(8KB)
----lib()
--------utils.js(3KB)
--------session.js(7KB)
--------handlers.js(1KB)
--------server.js(3KB)
--------iframe.js(1KB)
--------middleware.js(4KB)
--------info.js(1KB)
--------listener.js(1KB)
--------webjs.js(2KB)
--------sockjs-connection.js(1008B)
--------transport()
----README.md(16KB)
----.eslintignore(0B)
----scripts()
--------test.sh(315B)

网友评论