What happens if the client isn't connected when the ws method is called?
-
-
-
It waits until the client is connected. There could be many reasons why the client hasn't immediately connected, including temporary disconnects, latency, races, etc. There's something about timeouts here we should get right, but that probably requires some fiddling.
- Još 4 druga odgovora
Novi razgovor -
-
-
What‘s the use case for letting non-ws routes access a ws? And how are you going to find the right ws for a regular http request?
-
The framework would figure out how to match them. Elixir's Phoenix framework provides something similar. We know the peer addr, so that should be possible (: Non-WS routes might want to do something like e.g. change a status icon, send a notification, etc. if a WS is connected.
- Još 8 drugih odgovora
Novi razgovor -
-
-
More or less what I'm trying to go for is: - Provide a workflow that allows folks to implement whichever encoding layer they want on top of the sockets. - Don't expose the *protocol* internals to end-users; should feel like a channel. Flexible, performant, *and* productive.
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Checked tide on GitHub and realized tide is now in version 0.5, are you planning on writing a blog post like you did for version 0.4?. It would be nice to read through your thought process and the road ahead next..
-
I don't plan to about tide in general. Maybe the websocket / sse features do warrant a post though. I think there are a few things to unpack there that could be useful.
Kraj razgovora
Novi razgovor -
-
-
how could I add a heartbeat to this? this is pretty critical in most ws usages I have seen so far
-
Heartbeat should be built-in, likely using ping frames. The tide:ws() endpoint shorthand should also have a constructor alternative that allows configuring the finer details. Good defaults, but still allow people to drop in and configure.
Kraj razgovora
Novi razgovor -
-
-
Looks great
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.