Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add subscribeEvent stub * add onMessage callback to subscribeEvent * add json rpc version of subscribeEvent * add subscribeEvent to void provider * refine types for event sub, add websocket client instance * support insecure websocket * rename subscribeEvent parameter * update generated type guards * add debug logs to getWebsocketUrl * add SuiEventEnvelope typescript type * remove unused import, update type guards * {} to void return for subscribeevent * add basic event subscription test box * TEMPORARILY add eventsubscription to home page * remove broken checkbox select * add basic Event Filter Type element * lint changes * working objectId filter * lint changes * remove select form from event tester * remove jayson WebsocketClient * remove excess whitespace * add Subscription tracking * Update index.guard.ts * add unsubscribeEvent * remove console logs, add comments * style / organization changes in ts sdk * don't re-create websocket client * only create one default rpc client per network * lint changes * add on socket error * fix message subscription * add unsubscribe rpc call * allow timestamp as number in SuiEventEnvelope * remove LossLessJSON from event parsing * Update index.guard.ts * move socket event setup to method * add check for method id * remove explorer eventSubscription * make websocket rpc client not auto connection * bring back explorer test page for event sub * remove heartbeat * improve comment for socket type cast * improve timeout handling for websocket connection * add FilterSubHandler type * delete from active subs on remove * shorten lazy connect comment * use one single map to track subscription data * use .values() instead of entries() in sub refresh * improve comment about subscription refresh * Delete yarn.lock * remove explorer home changes for testing * use shorter console error * fix provider subscribe return value * fix doc comment on unsubscribe event * remove console.log * use jsdoc comment style * change EventType discriminator enum * make timestamp only a number * replace string manipulation with url object * update onMessage return types * change to doing socket setup in connect * add timeout error * shorten usage of reject * const instead of let for two vars * if spacing change * remove calbackwithType * Update client.ts * Update client.ts * move websocket client into its own class * Revert "remove explorer home changes for testing" This reverts commit a071c94. * rename most websocket client symbols * Revert "Revert "remove explorer home changes for testing"" This reverts commit ad1f441. * validate minimum data with validation off * Update websocket-client.ts * add else if in socket message handler * activeSubs -> eventSubs * wsProvider -> wsClient * move websocket client into rpc folder * better styling for default websocket options * add maxReconnects option to websockets * Revert "Revert "Revert "remove explorer home changes for testing""" This reverts commit cce81e3. * remove old todo * Update sdk/typescript/src/providers/void-provider.ts Co-authored-by: Chris Li <76067158+666lcz@users.noreply.github.com> * add better usage comments for event subscription * Revert "Revert "Revert "Revert "remove explorer home changes for testing"""" This reverts commit d828f19. * minor formatting change in provider * fix type guard import * Update pnpm-lock.yaml * fix capitalization on event filters * Update sdk/typescript/src/rpc/websocket-client.ts Co-authored-by: Chris Li <76067158+666lcz@users.noreply.github.com> * add websocket config jsdoc * add jsdoc for websocket client * update type guard * handle case of currently-connecting when calling connect Co-authored-by: Chris Li <76067158+666lcz@users.noreply.github.com>
- Loading branch information