add header to websocket so that relay.snort.social will connect.

This commit is contained in:
Robert C. Martin 2023-02-17 08:16:59 -06:00
parent 9d31c8f11c
commit 3a272fdda8

View File

@ -67,6 +67,7 @@
(try
(let [client (HttpClient/newHttpClient)
cl (.newWebSocketBuilder client)
cl (.header cl "origin" "more-speech")
cws (.buildAsync cl (URI/create url) (->listener (StringBuffer.) relay))
wsf (future (.get cws))
ws (deref wsf 30000 :time-out)]