[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake-mobile/master] Added Socket URL to GlobalApplication



commit 4ff7285c94411e5c14b09fc0a2d06f7fc592ecfc
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Wed Jun 24 14:32:17 2020 +0530

    Added Socket URL to GlobalApplication
---
 app/src/main/java/org/torproject/snowflake/GlobalApplication.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/src/main/java/org/torproject/snowflake/GlobalApplication.java b/app/src/main/java/org/torproject/snowflake/GlobalApplication.java
index 42e3b7f..8ef1f16 100644
--- a/app/src/main/java/org/torproject/snowflake/GlobalApplication.java
+++ b/app/src/main/java/org/torproject/snowflake/GlobalApplication.java
@@ -7,11 +7,16 @@ import java.util.Map;
 
 public class GlobalApplication extends Application {
     private final static String BROKER_URL = "http://10.0.2.2:8080";; //10.0.2.2 is used to access computer's local host from Android Emulator.
+    private final static String WEBSOCKET_URL = "wss://snowflake.freehaven.net:443";
 
     public static String getBrokerUrl() {
         return BROKER_URL;
     }
 
+    public static String getWebSocketUrl() {
+        return WEBSOCKET_URL;
+    }
+
     public static Map<String, String> getHeadersMap() {
         HashMap<String, String> map = new HashMap<>();
         map.put("Content-type", "application/json");



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits