Skip to content

Commit

Permalink
Convert the websocket transport to a channel
Browse files Browse the repository at this point in the history
  • Loading branch information
steveluscher committed Oct 4, 2024
1 parent b15c26d commit d341abb
Show file tree
Hide file tree
Showing 25 changed files with 285 additions and 502 deletions.
2 changes: 1 addition & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@solana/rpc-subscriptions": "2.0.0-rc",
"@solana/rpc-subscriptions-api": "2.0.0-rc",
"@solana/rpc-subscriptions-spec": "2.0.0-rc",
"@solana/rpc-subscriptions-transport-websocket": "2.0.0-rc",
"@solana/rpc-subscriptions-channel-websocket": "2.0.0-rc",
"@solana/rpc-transformers": "2.0.0-rc",
"@solana/rpc-transport-http": "2.0.0-rc",
"@solana/rpc-types": "2.0.0-rc",
Expand Down
2 changes: 1 addition & 1 deletion .changeset/rich-eggs-tease.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'@solana/errors': patch
'@solana/rpc': patch
'@solana/rpc-subscriptions': patch
'@solana/rpc-subscriptions-transport-websocket': patch
'@solana/rpc-subscriptions-channel-websocket': patch
'@solana/rpc-transport-http': patch
'@solana/webcrypto-ed25519-polyfill': patch
---
Expand Down
2 changes: 1 addition & 1 deletion .changeset/tidy-wolves-share.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@solana/rpc-subscriptions-transport-websocket": patch
"@solana/rpc-subscriptions-channel-websocket": patch
"@solana/webcrypto-ed25519-polyfill": patch
"@solana/transaction-confirmation": patch
"@solana/codecs-data-structures": patch
Expand Down
2 changes: 1 addition & 1 deletion .changeset/unlucky-jars-travel.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'@solana/rpc-subscriptions-transport-websocket': patch
'@solana/rpc-subscriptions-channel-websocket': patch
'@solana/webcrypto-ed25519-polyfill': patch
'@solana/transaction-confirmation': patch
'@solana/codecs-data-structures': patch
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ The main package responsible for managing communication with RPC subscriptions i

- `@solana/rpc-subscriptions`: Contains all logic related to subscribing to Solana RPC notifications.
- `@solana/rpc-subscriptions-api`: Describes all Solana RPC subscriptions using types.
- `@solana/rpc-subscriptions-transport-websocket`: Provides a concrete implementation of an RPC Subscriptions transport using WebSockets.
- `@solana/rpc-subscriptions-channel-websocket`: Provides a concrete implementation of an RPC Subscriptions channel using WebSockets.
- `@solana/rpc-subscriptions-spec`: Defines the JSON RPC spec for subscribing to RPC notifications.
- `@solana/rpc-spec-types`: Shared JSON RPC specifications types and helpers that are used by both `@solana/rpc` and `@solana/rpc-subscriptions`.
- `@solana/rpc-types`: Shared Solana RPC types and helpers that are used by both `@solana/rpc` and `@solana/rpc-subscriptions`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @solana/rpc-subscriptions-transport-websocket
# @solana/rpc-subscriptions-channel-websocket

## 2.0.0-rc.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

[code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
[code-style-prettier-url]: https://github.com/prettier/prettier
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/rpc-subscriptions-transport-websocket/rc.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/@solana/rpc-subscriptions-transport-websocket/rc.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@solana/rpc-subscriptions-transport-websocket/v/rc
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/rpc-subscriptions-channel-websocket/rc.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/@solana/rpc-subscriptions-channel-websocket/rc.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@solana/rpc-subscriptions-channel-websocket/v/rc
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]: https://github.com/semantic-release/semantic-release

# @solana/rpc-subscriptions-transport-websocket
# @solana/rpc-subscriptions-channel-websocket

TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@solana/rpc-subscriptions-transport-websocket",
"name": "@solana/rpc-subscriptions-channel-websocket",
"version": "2.0.0-rc.1",
"description": "An RPC Subscriptions transport that uses WebSockets",
"exports": {
Expand Down Expand Up @@ -72,7 +72,9 @@
],
"dependencies": {
"@solana/errors": "workspace:*",
"@solana/rpc-subscriptions-spec": "workspace:*"
"@solana/functional": "workspace:*",
"@solana/rpc-subscriptions-spec": "workspace:*",
"@solana/subscribable": "workspace:*"
},
"devDependencies": {
"@solana/ws-impl": "workspace:*",
Expand Down
Loading

0 comments on commit d341abb

Please sign in to comment.