jonataslaw / jonataslaw/getsocket

does not work for web

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
18
Forks
9
PR merge metrics
No merged PRs in 30d

Description

It's throws exception on web, but works on macos and ios:
I did not manage to get much info. Here is all I manage to gather.

`TypeError: Cannot read properties of null (reading 'inMilliseconds')
at Timer._createPeriodicTimer (http://localhost:64578/dart_sdk.js:41600:35)
at _RootZone.createPeriodicTimer (http://localhost:64578/dart_sdk.js:42955:26)
at Timer.periodic (http://localhost:64578/dart_sdk.js:41576:35)
at http://localhost:64578/packages/getsocket/src/html.dart.lib.js:165:34
at Object._checkAndCall (http://localhost:64578/dart_sdk.js:5609:16)
at Object.dcall (http://localhost:64578/dart_sdk.js:5614:17)
at WebSocket. (http://localhost:64578/dart_sdk.js:115590:21)`

it seams exception comes from **BaseWebSocket** class **connect** method, at line:
`...
_t = Timer?.periodic(ping, (t) {
socket.send('');
});
...
`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.