Answer the question
In order to leave comments, you need to log in
How to connect to the website's websocket?
const WebSocket = require('ws');
const ws = new WebSocket("wss://betting-public-gql.gin.bet/graphql");
ws.on('message', msg => {
console.log(msg);
});
ws.on('error', data => {
console.log(data);
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question