 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/%@/"
     }

                    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 == "live_trades" ? "btcusd" : productId)) {
                            let data = JSON(parseJSON: result["data"].stringValue)
                            strongSelf.setPrice(data["price"].doubleValue, for: currencyPair)
                            strongSelf.delegate?.exchangeDidUpdatePrices(strongSelf)
                        }
                    }

            
            socket.onConnect = { [weak self] in
                self?.selectedCurrencyPairs.forEach({ currencyPair in
                    let json = JSON([
                        "event": "bts:subscribe",
                        "data": [
                            "channel": "live_trades_\(currencyPair.customCode)"
                        ]
                    ])
                    
