-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create specified topic if non-existent (#91)
* initial websock publisher for real-time * package defs * change file name * cleanup * tabs * update ws package to 3.3.1 * tabs, add message when connection closed * small tweaks * refactor * cloudbuild.yaml point to revised function directory namew * fix dir * add socketUrl as custom pubsub message attribute * add bin to package.json * create specified topic if not there * template error message and exit with code * refactor open handler for web socket connection to own routine * cleanup
- Loading branch information
1 parent
f5bd2e1
commit 03b7b6f
Showing
3 changed files
with
54 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"name": "ws2pubsub", | ||
"name": "pubsock", | ||
"version": "0.0.1", | ||
"description": "BQDS WebSocket publisher", | ||
"description": "Streams WebSocket data to Pub/Sub", | ||
"license": "Apache-2.0", | ||
"repository": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/GoogleCloudPlatform/bq-datashare-toolkit" | ||
}, | ||
"dependencies": { | ||
"ws": "~3.3.1", | ||
"@google-cloud/pubsub": "^0.28.1" | ||
} | ||
}, | ||
"bin": { | ||
"pubsock": "index.js" | ||
}, | ||
"main": "index.js" | ||
} |