uWebSockets.js:用于Node.js后端的μWebSockets

时间:2021-02-03 17:00:48
【文件属性】:
文件名称:uWebSockets.js:用于Node.js后端的μWebSockets
文件大小:984KB
文件格式:ZIP
更新时间:2021-02-03 17:00:48
nodejs http typescript router runtime 简单,安全和符合标准的 Web服务器,适用于要求最高的应用程序。 :light_bulb: 非常简单 µWebSockets.js是Node.js的WebSocket / HTTP协议的C ++实现,可从JavaScript轻松使用。 自2016年以来已开发并提供支持。可以将它视为Socket.IO和Fastify / Express.js的替代品; 它具有路由器和发布/订阅支持。 浏览并查看。 有很多但这是全部内容的要点: /* Non-SSL is simply App() */ require ( 'uWebSockets.js' ) . SSLApp ( { /* There are more SSL options, cut for brevity */ key_file_name : 'misc/key.pem' , cert_file_name : 'misc/cert.pem' , } ) . ws ( '/*' , { /* There are many common helper features */ idleTimeout : 30 ,
【文件预览】:
uWebSockets.js-master
----.gitattributes(77B)
----.github()
--------workflows()
----.gitmodules(96B)
----src()
--------addon.cpp(21KB)
--------uws.js(1KB)
--------WebSocketWrapper.h(11KB)
--------HttpRequestWrapper.h(7KB)
--------AppWrapper.h(26KB)
--------host.cpp(4KB)
--------HttpResponseWrapper.h(17KB)
--------Utilities.h(5KB)
----examples()
--------ProxyProtocol.js(805B)
--------Headers.js(749B)
--------WebSockets.js(976B)
--------Upgrade.js(1KB)
--------AsyncFunction.js(851B)
--------VideoStreamerSync.js(1KB)
--------GracefulShutdown.js(1KB)
--------HelloWorld.js(430B)
--------Upload.js(1016B)
--------Broadcast.js(930B)
--------ServerName.js(1KB)
--------Backpressure.js(2KB)
--------WorkerThreads.js(1KB)
--------PubSub.js(2KB)
--------UpgradeAsync.js(2KB)
--------Router.js(971B)
--------VideoStreamer.js(4KB)
--------JsonPost.js(2KB)
----LICENSE(11KB)
----README.md(6KB)
----Makefile(46B)
----docs()
--------generated()
--------Makefile(149B)
--------index.d.ts(19KB)
--------report.pdf(167KB)
----tests()
--------Autobahn.js(2KB)
--------Hammer.js(6KB)
--------Makefile(34B)
--------fuzzingclient.json(742B)
----misc()
--------logo.svg(12KB)
--------streaming.png(606KB)
--------host.pro(1021B)
--------addon.pro(700B)
--------chart.png(11KB)
--------features_strip.png(73KB)
--------key.pem(2KB)
--------cert.pem(1KB)
----uWebSockets()
----build.c(4KB)

网友评论