generated from GregBrimble/cf-workers-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f767360
commit 1941b76
Showing
27 changed files
with
1,793 additions
and
5,542 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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Pusher from "pusher-js"; | ||
import { getSettings } from "../contexts/SettingsContext"; | ||
|
||
const APP_KEY = "2e0f85d5db4fe82c3479"; | ||
const APP_CLUSTER = "eu"; | ||
|
||
export const getPusher = () => { | ||
const { token, emailAddress, key } = getSettings(); | ||
|
||
return new Pusher(APP_KEY, { | ||
wsHost: `ws-${APP_CLUSTER}.workers.sh`, | ||
auth: { | ||
headers: { | ||
Authorization: token ? `Bearer ${token}` : "", | ||
"X-AUTH-EMAIL": emailAddress, | ||
"X-AUTH-KEY": key, | ||
}, | ||
}, | ||
}); | ||
}; |
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 +1 @@ | ||
@kv-orm:registry=https://npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} | ||
@kv-orm:registry=https://npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} |
Oops, something went wrong.