Skip to content

Commit

Permalink
fix: Default TGE with WebSocket support
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Dec 11, 2019
1 parent bcfa660 commit 23ebcea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions examples/expressjs-ethr/src/web-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ async function main() {
console.log(`Server running at http://localhost:${port}/`)

await core.startServices()
// await core.syncServices(await dataStore.latestMessageTimestamps())
console.log('Polling while WS is unavailable')
setInterval(async () => {
await core.syncServices(await dataStore.latestMessageTimestamps())
}, 5000)
await core.syncServices(await dataStore.latestMessageTimestamps())
})
}

Expand Down
4 changes: 2 additions & 2 deletions packages/daf-trust-graph/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const defaultTrustGraphUri = 'https://edge.uport.me/graphql'
export const defaultTrustGraphWsUri = null
export const defaultTrustGraphUri = 'https://trustgraph.uport.me/graphql'
export const defaultTrustGraphWsUri = 'wss://trustgraph.uport.me/graphql'

0 comments on commit 23ebcea

Please sign in to comment.