Commit graph

31 commits

Author SHA1 Message Date
Percs
7bd51538c8 add a synchronous example 2024-07-09 13:45:18 -05:00
Toshit Chawda
8015428b45
add webworker workaround to readme 2024-07-09 11:29:51 -07:00
Toshit Chawda
cb443135d9
remove broadcastchannel for workerPath, let the client pass in a messageport, use snapshot for more stuff 2024-07-09 10:28:44 -07:00
ading2210
91f27d4c06
Create LICENSE 2024-07-08 20:54:18 -07:00
Toshit Chawda
229695d13c
use snapshot SharedWorker 2024-07-08 19:16:04 -07:00
Percs
01d44130cc update rollup script 2024-07-08 15:54:27 -05:00
Toshit Chawda
2169a423b6
make logs a bit more descriptive 2024-07-08 13:01:13 -07:00
Toshit Chawda
6e86375a69
add a ping message to make sure worker port is alive 2024-07-08 12:59:37 -07:00
Toshit Chawda
fde90f3ec1
tell the sw to refresh its port when a new shared worker gets made 2024-07-08 12:02:35 -07:00
Percs
fb81b33714 update package name 2024-07-08 13:20:38 -05:00
Toshit Chawda
dc9f4a7e39
add getTransport, add retrying to the sw messageport promise 2024-07-07 19:38:15 -07:00
Toshit Chawda
c540450b66
create new worker when passing it to sw 2024-07-07 16:59:51 -07:00
Toshit Chawda
c5aeec4ee8
only register sw handler if navigator.serviceWorker exists 2024-07-07 16:43:57 -07:00
Toshit Chawda
d3e26603d1
Revert "capitalize SetTransport"
This reverts commit 34ac32b3ca.
2024-07-07 16:38:51 -07:00
Percs
34ac32b3ca capitalize SetTransport 2024-07-07 18:37:08 -05:00
Toshit Chawda
3fd8d4e293
refactor out sharedworker construction, add logging 2024-07-07 16:36:55 -07:00
Percs
9d7e6f3c9c update readme 2024-07-07 17:56:17 -05:00
Percs
228ddac643 update readme 2024-07-07 17:48:31 -05:00
Percs
d9b3ffe51d update rollup config and package json 2024-07-07 17:41:07 -05:00
Toshit Chawda
2e0dc263ac
export all types in one file 2024-07-07 15:34:40 -07:00
Toshit Chawda
bc9606e1b8
make the readme less confusing 2024-07-07 15:27:38 -07:00
Percs
722827d6d7 add back node imports 2024-07-07 17:21:37 -05:00
Toshit Chawda
b4c7ac361b
slightly edit types 2024-07-07 15:16:58 -07:00
Toshit Chawda
fb8fe1d306
rename setTransport to setManualTransport 2024-07-07 15:13:00 -07:00
Percs
cad770e2d1 update paths in package.json 2024-07-07 17:01:22 -05:00
Toshit Chawda
c8c3aeb761
clean up settransport 2024-07-07 14:54:55 -07:00
Toshit Chawda
508b265df2
fix some stuff 2024-07-07 14:30:49 -07:00
Toshit Chawda
8ed59e901d
make set transport async for the user 2024-07-07 14:21:04 -07:00
Toshit Chawda
7a1273e967
create readme 2024-07-07 14:16:45 -07:00
Toshit Chawda
e2b85c3d99
websocket support 2024-07-07 14:10:19 -07:00
Toshit Chawda
5355f49957
fetch working 2024-07-07 01:11:13 -07:00