SqliteWebEndpoint typedef

SqliteWebEndpoint = (MessagePort, String)

An endpoint that can be used, by any running JavaScript context in the same website, to connect to an existing Database.

These endpoints are created by calling Database.additionalConnection and consist of a MessagePort and a String internally identifying the connection. Both objects can be transferred over send ports towards another worker or context. That context can then use WebSqlite.connectToPort to connect to the port already opened.

Implementation

typedef SqliteWebEndpoint = (MessagePort, String);