Skip to content

Instantly share code, notes, and snippets.

@cscchat
cscchat / casinocoind-proxy.js
Last active April 2, 2018 20:07 — forked from WietseWind/rippled-proxy.js
Casinocoin Websocket proxy to test reconnecting & health checking for https://www.npmjs.com/package/casinocoind-ws-client
const WebSocket = require('ws')
const ws = new WebSocket('wss://s1.casnocoin.org')
const wss = new WebSocket.Server({ port: 8011 })
wss.on('connection', function connection(c) {
let sendmessages = true
setTimeout(function () {
sendmessages = false