# node-dss
[![Build Status](https://travis-ci.org/bengreenier/node-dss.svg?branch=master)](https://travis-ci.org/bengreenier/node-dss)
dead simple signalling for webrtc.
## Why
Think of this as a message broker service. It allows you to pass messages to a predetermined reciever. We use this as a lightweight replacement for a signalling server, where both clients have known identities. This saves us from the more complex logic of tracking live clients, and communicating peer 'join' and 'leave' events.
## How
> Note: To see logs, use the environment variable `DEBUG` with the `dss` namespace. IE: `set DEBUG=dss*`.
You'll need to install [nodejs](https://nodejs.org) to leverage this service.
First install dependencies with [npm](http://npmjs.com/) - from the project directory run: `npm install`. Then run the service with `npm start` from the project directory.
__Without the `DEBUG` environment variable set as-documented above, there will be no output from the process indicating a successful start.__
### Check for a message
Use `GET` to `/data/:id` where `:id` identifies your client
#### No messages for you
```
GET /data/user1 HTTP/1.1
Host: localhost:3000
404
<emptyBody>
```
#### You have a message
```
GET /data/user1 HTTP/1.1
Host: localhost:3000
200
<message data>
```
### Post a message
Use `POST` to `/data/:id` where `:id` identifies the destination client. The body is your message. MIME not required.
#### Message uploaded
```
POST /data/user1 HTTP/1.1
Host: localhost:3000
<message data>
200
<emptyBody>
```
## License
MIT
webrtc的死简单信号。_JavaScript_下载.zip
版权申诉
87 浏览量
2023-04-26
11:32:11
上传
评论
收藏 36KB ZIP 举报
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
最新资源
- 基于JavaScript讲解的数据结构和算法
- python计算机视觉python-computer-vision.rar
- VB+ACCESS计算机等级考试管理系统(源代码+系统+答辩PPT).zip
- python密码python-ciphers.rar
- 2c60fbb3dt9ad50ed8864298eea1484b.MP4
- 基于yolov8+dlib实现视觉识别的安全驾驶监测系统部署到jetson NX平台源码+模型.zip
- Qt框架+OpenCV+动态爱心+编程教学+520
- 基于opencv+yolov8实现目标追踪及驻留时长统计源码.zip
- 水稻病害基于Yolov8算法优化目标检测识别与AI辅助决策python源码+模型+使用说明.zip
- 海尔618算价表_七海5.20_16.00xlsx(1)(2).xlsx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈