Open vincar opened 7 years ago
Hi, I don't think this is really the right place for this question, since it's up to you (the application writer) to define your :continuation
and :end
mechanisms.
I think the solution would be to write an intermediary function, that calls itself passing back the data until it hits :end
, and then once you hit the end it bubbles up the end result
Hi!I am a fresher on elixir.How should I receive fragmented data through by websocket? { :fragmented, :text, data } -> recv(socket) { :fragmented, :continuation, data } -> recv(socket) { :fragmented, :end, data } -> recv(socket)
I want to get total data in the end.