azure-websockets:Azure-Websockets模块的个人版

时间:2024-04-27 05:00:02
【文件属性】:

文件名称:azure-websockets:Azure-Websockets模块的个人版

文件大小:101KB

文件格式:ZIP

更新时间:2024-04-27 05:00:02

JavaScript

用法: const { WebPubSubServer } = require ( './webpubsub' ) const dotenv = require ( 'dotenv' ) ; const http = require ( 'http' ) ; dotenv . config ( ) ; const wpsserver = new WebPubSubServer ( process . env . WPS_CONNECTION_STRING , 'chat' ) ; // sample of client negotiate console . log ( wpsserver . endpoint . clientNegotiate ( 'chat' , { userId : "vicancy" , claims : { hey : [ "w" ] ,


【文件预览】:
azure-websockets-master
----test.js(1KB)
----package.json(769B)
----esm()
--------WebPubSubCloudEventsHandler.d.ts(2KB)
--------webPubSubCloudEventsDispatcher.d.ts(2KB)
--------index.js(353B)
--------webPubSubServiceEndpoint.js(2KB)
--------webPubSubCloudEventsDispatcher.js(7KB)
--------webPubSubServiceClient.d.ts.map(4KB)
--------webPubSubKeyCredentials.js(1KB)
--------webPubSubServiceEndpoint.js.map(2KB)
--------webPubSubKeyCredentials.d.ts.map(337B)
--------WebPubSubCloudEventsHandler.js(3KB)
--------index.js.map(231B)
--------webPubSubCloudEventsProtocols.js(132B)
--------webPubSubCloudEventsProtocols.d.ts(3KB)
--------webPubSubCloudEventsDispatcher.d.ts.map(1KB)
--------webPubSubKeyCredentials.d.ts(681B)
--------webPubSubServiceEndpoint.d.ts(865B)
--------webPubSubCloudEventsProtocols.js.map(174B)
--------webPubSubKeyCredentials.js.map(943B)
--------WebPubSubCloudEventsHandler.js.map(2KB)
--------webPubSubCloudEventsDispatcher.js.map(5KB)
--------webPubSubServiceClient.d.ts(9KB)
--------webPubSubServiceRestClient.d.ts.map(4KB)
--------index.d.ts(233B)
--------index.d.ts.map(207B)
--------webPubSubServiceClient.js(15KB)
--------webPubSubServiceClient.js.map(10KB)
--------generated()
--------webPubSubCloudEventsProtocols.d.ts.map(1KB)
--------WebPubSubCloudEventsHandler.d.ts.map(694B)
--------webPubSubServiceRestClient.d.ts(8KB)
--------webPubSubServiceEndpoint.d.ts.map(720B)
--------webPubSubServiceRestClient.js.map(7KB)
--------webPubSubServiceRestClient.js(12KB)
----Readme.md(2KB)
----package-lock.json(35KB)
----dist()
--------webpubsub.js(67KB)
--------webpubsub.js.map(136KB)
----.gitignore(23B)

网友评论