Skip to content

Commit

Permalink
Update changelog and mark class deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Feb 8, 2021
1 parent c73e945 commit 80ede19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion changelog/js-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ All notable changes to `zksync.js` will be documented in this file.

### Changed

- WebSocket provider was marked as obsolete.
### Deprecated

- WebSocket provider.

### Fixed

Expand Down
3 changes: 3 additions & 0 deletions sdk/zksync.js/src/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export class HTTPTransport extends AbstractJSONRPCTransport {
async disconnect() {}
}

/**
* @deprecated Websocket support will be removed in future. Use HTTP transport instead.
*/
export class WSTransport extends AbstractJSONRPCTransport {
ws: WebSocketAsPromised;
private subscriptionCallback: Map<string, (data: any) => void>;
Expand Down

0 comments on commit 80ede19

Please sign in to comment.