Code Monkey home page Code Monkey logo

Comments (5)

tony-iqlusion avatar tony-iqlusion commented on August 10, 2024

Those docs are both incorrect and out-of-date. I'll take a look into updating them.

from tmkms.

congle-ibl avatar congle-ibl commented on August 10, 2024

Hi @tony-iqlusion

Thank you so much for your help. I have one more question, please help, if I want to run gaia socket with adding config priv_validator_laddr = "tcp://127.0.0.1:26658" , I need to set up tmkms, is it right?

from tmkms.

tony-iqlusion avatar tony-iqlusion commented on August 10, 2024

Yep

from tmkms.

congle-ibl avatar congle-ibl commented on August 10, 2024

Hi @tony-iqlusion

I have set up tmkms successfully

isysadmin@iblcoreus-sta-btc2:~/ATOM$ tmkms start -c tmkms.toml 
Mar 26 07:14:36.271  INFO tmkms::commands::start: tmkms 0.7.2 starting up...
Mar 26 07:14:36.271  INFO tmkms::keyring: [keyring:softsign] added consensus key cosmosvalconspub1zcjduepqkj4xhgzgrqk3e0gcd2q35a7jnwd7jj6c4ue9la8wcnrac5u689kq3j4sh2
Mar 26 07:14:36.271  INFO tmkms::connection::tcp: KMS node ID: 8E95C1DB663E5C0063FC6F89BB61FACDB92EBC3E
Mar 26 07:14:36.273  INFO tmkms::session: [cosmoshub-3@tcp://127.0.0.1:26658] connected to validator successfully

And my gaia node can run with option priv_validator_laddr = "tcp://127.0.0.1:26658". But I don't know how to subscribe socket to get data.

I tried to use websocket and here is my example:

const WebSocket = require("ws");
let url = "tcp://127.0.0.1:26658"
let ws = new WebSocket(url);

ws.onopen = () => {
    console.log(`Websocket connection to ${url} successfully.`);
};

ws.onerror = (error) => {
    console.log(`Websocket connection to ${url} error: ${error.message}`);
};

ws.onclose = (error) => {
    console.log(`Websocket connection to ${url} closed: ${error.message}`);
};

ws.onconnecting = () => {
    console.log(`Reconnecting to ${url}`);
};

ws.onmessage = (message) => {
    console.log(message.data)
};

But it did not work, please help to give me some advice. Thank you so much for your time.

from tmkms.

tony-iqlusion avatar tony-iqlusion commented on August 10, 2024

@congle-ibl tmkms does not support web sockets

from tmkms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.