nodejs
Xiang08
这个作者很懒,什么都没留下…
展开
-
node.js ws模块 方法属性(websocket)获取IP
WebSocket compression ws supports thepermessage-deflate extensionwhich enables the client and server to negotiate a compression algorithm and its parameters, and then selectively apply it to the data payloads of each WebSocket message. The extension is..原创 2020-10-05 10:04:54 · 3231 阅读 · 1 评论 -
关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a futur
关于nodejs DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. con...转载 2019-09-06 16:46:28 · 297 阅读 · 0 评论 -
Nodejs搭建websocket(wss)+ MongoDB连接
const fs = require('fs'); const https = require('https'); const WebSocket = require('ws'); const MongoClient = require('mongodb').MongoClient; const DB_CONN_STR = 'mongodb://localhost:27017/microcosm'...原创 2019-09-06 16:48:36 · 849 阅读 · 0 评论