| 61 | } |
| 62 | |
| 63 | fl::string HttpStreamTransport::idToString(const fl::json& id) { |
| 64 | if (id.is_int()) { |
| 65 | char buf[32]; |
| 66 | fl::snprintf(buf, sizeof(buf), "%d", id.as_int().value()); |
| 67 | return fl::string(buf); |
| 68 | } |
| 69 | if (id.is_string()) { |
| 70 | return id.as_string().value(); |
| 71 | } |
| 72 | // Fallback for other types - use string representation |
| 73 | return id.to_string(); |
| 74 | } |
| 75 | |
| 76 | void HttpStreamTransport::parseChunkedMessages() { |
| 77 | for (;;) { |