cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
417 stars 461 forks source link

Not able to connect to web socket #154

Open immrmonero opened 6 years ago

immrmonero commented 6 years ago

Hi, I was trying out this coin hive stratum to set up a coinhive proxy. I deployed the code in now.sh server. I m able to access the /stats and /miner api. But i m not able to connect from coinhive code.

This is what i ve added in my code:

CoinHive.CONFIG.WEBSOCKET_SHARDS = [["ws://proxy-yrjxliushz.now.sh"]];

I m getting the following error:

Error during WebSocket handshake: Unexpected response code: 301

Kindly someone help me in this issue, thanks in advance

immrmonero commented 6 years ago
screen shot 2018-02-15 at 11 32 21 pm