Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
arraybuffer with mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jun 30, 2017
1 parent 961612e commit 5d11402
Show file tree
Hide file tree
Showing 4 changed files with 1,121 additions and 350 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
"btc-dash": "bin/index.js"
},
"dependencies": {
"base64mime": "^0.0.1",
"base64toblob": "^0.0.1",
"arraybuffer-mime": "0.0.1",
"ecstatic": "^0.5.5",
"filetobase64": "^0.0.3",
"hyperlinkify": "0.0.3",
"is-base64": "0.0.2",
"randomstring": "^1.0.3",
"uuid": "^3.1.0",
"ws": "^3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ function createSock(conn, path, clients=[]) {
sendConnections()

conn.on('message', data => {
console.log('received: %s', data)
console.log('received data')
//console.log('received: %s', data)
//console.log(`\n${path}\n---${data}---`)
clients.forEach(client => {
console.log(`streaming to ${client.id} ${path}`)
Expand Down

0 comments on commit 5d11402

Please sign in to comment.