 class BitstampExchange: Exchange {
     
     private struct Constants {
-        static let WebSocketURL = URL(string: "wss://ws.pusherapp.com/app/de504dc5763aeef9ff52?protocol=7")!
+        static let WebSocketURL = URL(string: "wss://ws.bitstamp.net")!
         static let ProductListAPIPath = "https://www.bitstamp.net/api/v2/trading-pairs-info/"
         static let TickerAPIPathFormat = "https://www.bitstamp.net/api/v2/ticker/%@/"
     }

            
            socket.onConnect = { [weak self] in
                self?.selectedCurrencyPairs.forEach({ currencyPair in
                    var channelName = "live_trades"
                    if !currencyPair.baseCurrency.isBitcoin || currencyPair.quoteCurrency.code != "USD" {
                        channelName += "_\(currencyPair.customCode)"
                    }
                    
                    let json = JSON([
                        "event": "pusher:subscribe",
                        "data": [
                            "channel": channelName
                        ]
                    ])
                    

                    let result = JSON(parseJSON: text)
                    if result["event"] == "trade" {
                        let productId = result["channel"].stringValue.replacingOccurrences(of: "live_trades_", with: "")
                        if let currencyPair = strongSelf.selectedCurrencyPair(withCustomCode: productId) {
                            strongSelf.setPrice(result["data"]["price"].doubleValue, for: currencyPair)
                            strongSelf.delegate?.exchangeDidUpdatePrices(strongSelf)
                        }
                    }
