Comments (2)
We are working on a new re-write of pythd which will expose metrics relating to the updates pythd receives from it's clients, as you suggest. This is with the aim of increasing the observability of pythd. If you have any suggestions about which metrics would be useful to you, we'd love to hear them. Thank-you 😄
from pyth-client.
I maintain my own fork of pyth-client and have patched the dashboard with the following
diff --git a/dashboard/dashboard.js b/dashboard/dashboard.js
index 840f098..aaa3d46 100644
--- a/dashboard/dashboard.js
+++ b/dashboard/dashboard.js
@@ -125,7 +125,14 @@ class Prices
let ws = null;
let px = null;
window.onload = function() {
- ws = new WebSocket('ws://localhost:8910')
+ var loc = window.location, ws_uri;
+ if (loc.protocol === "https:") {
+ ws_uri = "wss:";
+ } else {
+ ws_uri = "ws:";
+ }
+ ws_uri += "//" + loc.hostname + ":" + loc.port;
+ ws = new WebSocket(ws_uri)
px = new Prices
ws.onopen = function(e) {
let n = document.getElementById('notify');```
from pyth-client.
Related Issues (20)
- Convert `program/` to C++.
- move pyth admin functions to python HOT 1
- Pyth client websocket interface should lower case headers before comparing them
- Pyth Daemon - "not ready to publish - check rpc / pyth_tx connection" on RPC reconnect HOT 2
- Test issue
- API connection error HOT 3
- pyth: failed to create key_store directory [13 Permission denied] HOT 3
- RPC host fails name resolution if it contains a path HOT 2
- Add headers to files to prevent compiling issues in certain platforms.
- pythd throws when HOME undefined HOT 3
- pythd: invalid or corrupt product account HOT 1
- Firstttt
- Static Analysis - Cleanup & Automation HOT 1
- Native HTTPS support HOT 3
- replace qsort module HOT 1
- Instruction count regression tests
- Pythd rpc host url token support HOT 1
- Move `pd.h` function definitions to a new `pd.c` file. HOT 2
- Fuzz Testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyth-client.