This repository was archived by the owner on Mar 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed
Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ Released with 1.0.0-beta.37 code base.
5454
5555- localStorage support detection added (#3031 )
5656- getNetworkType method extended with Görli testnet (#3095 )
57+ - supportsSubscriptions method added to providers (#3116 )
5758
5859### Fixed
5960
Original file line number Diff line number Diff line change @@ -120,5 +120,14 @@ HttpProvider.prototype.disconnect = function () {
120120 //NO OP
121121} ;
122122
123+ /**
124+ * Returns the desired boolean.
125+ *
126+ * @method supportsSubscriptions
127+ * @returns {boolean }
128+ */
129+ HttpProvider . prototype . supportsSubscriptions = function ( ) {
130+ return false ;
131+ } ;
123132
124133module . exports = HttpProvider ;
Original file line number Diff line number Diff line change @@ -311,5 +311,15 @@ IpcProvider.prototype.reset = function () {
311311 this . addDefaultEvents ( ) ;
312312} ;
313313
314+ /**
315+ * Returns the desired boolean.
316+ *
317+ * @method supportsSubscriptions
318+ * @returns {boolean }
319+ */
320+ IpcProvider . prototype . supportsSubscriptions = function ( ) {
321+ return true ;
322+ } ;
323+
314324module . exports = IpcProvider ;
315325
Original file line number Diff line number Diff line change @@ -404,4 +404,14 @@ WebsocketProvider.prototype.disconnect = function () {
404404 }
405405} ;
406406
407+ /**
408+ * Returns the desired boolean.
409+ *
410+ * @method supportsSubscriptions
411+ * @returns {boolean }
412+ */
413+ WebsocketProvider . prototype . supportsSubscriptions = function ( ) {
414+ return true ;
415+ } ;
416+
407417module . exports = WebsocketProvider ;
You can’t perform that action at this time.
0 commit comments