Skip to content

fix: drop server-side remnants, add WS interface - #1819

Open
arnautov-anton wants to merge 2 commits into
release-v10from
drop-server-side-remnants
Open

fix: drop server-side remnants, add WS interface#1819
arnautov-anton wants to merge 2 commits into
release-v10from
drop-server-side-remnants

Conversation

@arnautov-anton

Copy link
Copy Markdown
Contributor

Description of the changes, What, Why and How?

@arnautov-anton arnautov-anton changed the title Initial commit fix: drop server-side remnants, add WS interface Aug 11, 2026
@arnautov-anton
arnautov-anton force-pushed the drop-server-side-remnants branch from 1b48929 to 2790716 Compare August 11, 2026 16:28
Comment thread src/utils.ts
Comment on lines +103 to 113
export function addFileToFormData(uri: string | Blob, name?: string) {
const data = new FormData();

if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri) || isBlobWebAPI(uri)) {
if (isBlobWebAPI(uri)) {
if (name) data.append('file', uri, name);
else data.append('file', uri);
} else {
data.append('file', {
uri,
name: name || (uri as string).split('/').reverse()[0],
contentType: contentType || undefined,
type: contentType || undefined,
});
data.append('file', uri);
}

return data;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This right here is the biggest change and would need some testing from RN guys too, not sure whether this is the correct typing. @isekovanic

Comment thread src/connection.ts
Comment on lines +345 to +346
const WS = this.client.options.WebSocketImpl ?? WebSocket;
this.ws = new WS(wsURL);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant