davidstump / SwiftPhoenixClient

Connect your Phoenix and iOS applications through WebSockets!
MIT License
512 stars 147 forks source link

What are the payload size limits? #254

Closed timetraveler90 closed 9 months ago

timetraveler90 commented 9 months ago

As I am not managing to find it anywhere in the doc nor the code I decided to ask here what are the limits for the payload size in kilobytes.

If possible provide me the example where it's set to be like that, please.

Thanks in advance.

dsrees commented 9 months ago

Should be whatever the limit of maximumMessageSize is in URLSessionWebSocketTask which appears to be able a 1MB

https://stackoverflow.com/questions/77669132/what-is-the-default-value-for-maximummessagesize-in-urlsessionwebsockettask

timetraveler90 commented 9 months ago

Thanks for answering, appreciate it!