Fix erroneous WS subscription name for public TL.
This commit is contained in:
parent
1af985130f
commit
c72a9281df
@ -713,21 +713,21 @@ subscribeToWebSockets client streamType message =
|
|||||||
let
|
let
|
||||||
type_ =
|
type_ =
|
||||||
case streamType of
|
case streamType of
|
||||||
UserStream ->
|
GlobalPublicStream ->
|
||||||
"user"
|
"public"
|
||||||
|
|
||||||
LocalPublicStream ->
|
LocalPublicStream ->
|
||||||
"public:local"
|
"public:local"
|
||||||
|
|
||||||
GlobalPublicStream ->
|
UserStream ->
|
||||||
"public:local"
|
"user"
|
||||||
|
|
||||||
url =
|
url =
|
||||||
(Util.replace "https" "wss" client.server)
|
encodeUrl
|
||||||
++ "/api/v1/streaming/?access_token="
|
((Util.replace "https:" "wss:" client.server) ++ "/api/v1/streaming/")
|
||||||
++ client.token
|
[ ( "access_token", client.token )
|
||||||
++ "&stream="
|
, ( "stream", type_ )
|
||||||
++ type_
|
]
|
||||||
in
|
in
|
||||||
WebSocket.listen url message
|
WebSocket.listen url message
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user