From e87d01135feabb8f1a14ebe85e252ba77c58e1b8 Mon Sep 17 00:00:00 2001 From: Gioele Cantoni Date: Wed, 18 Feb 2026 20:08:08 +0100 Subject: [PATCH 1/2] Update port to 443 --- .env.example | 2 +- examples/with-javascript-browser/index.html | 5 ++--- package.json | 4 ++-- src/drivers/connection-ws.ts | 2 +- src/drivers/types.ts | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index 0f7aa32..9d57d0b 100644 --- a/.env.example +++ b/.env.example @@ -9,4 +9,4 @@ CHINOOK_DATABASE_URL="sqlitecloud://user:password@xxx.sqlite.cloud:8860/chinook. CHINOOK_API_KEY=xxxxxx # sqlite cloud gateway for socket.io connections -GATEWAY_URL=ws://localhost:4000 +GATEWAY_URL=ws://localhost:443 diff --git a/examples/with-javascript-browser/index.html b/examples/with-javascript-browser/index.html index e4d1bc4..3f622fe 100644 --- a/examples/with-javascript-browser/index.html +++ b/examples/with-javascript-browser/index.html @@ -19,8 +19,7 @@

SQLite Cloud Drivers

databaseUrl
+ value="sqlitecloud://host.sqlite.cloud:8860?apikey=apikey" class="border rounded w-full pl-2 pr-2 mb-2" />
sql:
Results: // connect via websocket to the gateway on the same server const connectionConfig = { gatewayUrl: `${window.location.protocol === 'https:' ? 'wss' : 'ws' - }://${window.location.hostname}:4000`, + }://${window.location.hostname}:443`, connectionstring: connectionstring, }; var database = new window.sqlitecloud.Database( diff --git a/package.json b/package.json index 5d56453..e1d86a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sqlitecloud/drivers", - "version": "1.0.739", + "version": "1.0.779", "description": "SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -109,4 +109,4 @@ "browser": { "tls": false } -} +} \ No newline at end of file diff --git a/src/drivers/connection-ws.ts b/src/drivers/connection-ws.ts index 0f5352d..381c939 100644 --- a/src/drivers/connection-ws.ts +++ b/src/drivers/connection-ws.ts @@ -30,7 +30,7 @@ export class SQLiteCloudWebsocketConnection extends SQLiteCloudConnection { if (!this.socket) { this.config = config const connectionstring = this.config.connectionstring as string - const gatewayUrl = this.config?.gatewayurl || `${this.config.host === 'localhost' ? 'ws' : 'wss'}://${this.config.host as string}:4000` + const gatewayUrl = this.config?.gatewayurl || `${this.config.host === 'localhost' ? 'ws' : 'wss'}://${this.config.host as string}:443` this.socket = io(gatewayUrl, { auth: { token: connectionstring } }) this.socket.on('connect', () => { diff --git a/src/drivers/types.ts b/src/drivers/types.ts index 8e9f9e1..3e5e4d9 100644 --- a/src/drivers/types.ts +++ b/src/drivers/types.ts @@ -85,7 +85,7 @@ export interface SQLiteCloudConfig { /** True if we should force use of SQLite Cloud Gateway and websocket connections, default: true in browsers, false in node.js */ usewebsocket?: boolean - /** Url where we can connect to a SQLite Cloud Gateway that has a socket.io deamon waiting to connect, eg. wss://host:4000 */ + /** Url where we can connect to a SQLite Cloud Gateway that has a socket.io deamon waiting to connect, eg. wss://host:443 */ gatewayurl?: string /** Optional identifier used for verbose logging */ From 7101077610155e19c61ea4a2f7c5df716d065b81 Mon Sep 17 00:00:00 2001 From: Gioele Cantoni Date: Wed, 18 Feb 2026 20:10:37 +0100 Subject: [PATCH 2/2] Bump version to 1.0.800