davidstump / SwiftPhoenixClient

Connect your Phoenix and iOS applications through WebSockets!
MIT License
506 stars 146 forks source link

What are the payload size limits? #254

Closed timetraveler90 closed 6 months ago

timetraveler90 commented 6 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 6 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 6 months ago

Thanks for answering, appreciate it!