Lawrence Forooghian

Results 95 issues of Lawrence Forooghian

See comment added to `scripts/moduleReport.ts` in #1497. ┆Issue is synchronized with this [Jira Task](https://ably.atlassian.net/browse/ECO-4190) by [Unito](https://www.unito.io)

investigate
code-quality

See description of #1480, in which I had to add a type assertion to get around the signature of `serialize`: > Fixing a newly-introduced compilation error calling `wsConnection.send` in `WebSocketTransport`...

code-quality

See https://github.com/ably/ably-js/pull/1453#issuecomment-1775289025. ┆Issue is synchronized with this [Jira Bug](https://ably.atlassian.net/browse/ECO-4180) by [Unito](https://www.unito.io)

bug

The spec says that `RealtimePresence`’s `enter*`, `update*` and `leave*` methods are meant to accept an optional `extras` argument. We do not support this. To pass extras, you need to pass...

breaking

See [MMB-328](https://ably.atlassian.net/browse/MMB-328); I've created a corresponding issue here since ideally we'd like to keep the Spaces `EventEmitter` API the same as that of ably-js’s corresponding class (my understanding is that...

enhancement
investigate

The case where `once` is passed an array of event names is implemented by wrapping the listener argument in another listener: https://github.com/ably/ably-js/blob/76cc74fcfa66beff40f2a367c8b9b69b8aabd60e/src/common/lib/util/eventemitter.ts#L260-L273 This means that the event emitter does not...

bug

For some reason, the `.d.ts` files used internally in the codebase are not checked by the TypeScript compiler. Some of them contain errors (e.g. referring to non-existent types, performing imports...

code-quality

The `Message` type defined in `src/common/lib/types/message.ts` does not implement the `Message` interface defined in `ably.d.ts`. Many of the properties (e.g. `clientId`) in the internal `Message` type accept `undefined` as a...

bug

When the client emits a 40171 error due to a token error without means to renew token (per [RSA4a2](https://sdk.ably.com/builds/ably/specification/main/features/#RSA4a2)), there is no way for the user to find out what...

code-quality

There are a couple of issues here: * Many of our public methods which are meant to emit an `ErrorInfo` (as [defined by our type definitions](https://github.com/ably/ably-js/blob/92003d88d89f5d165748396944cc51bc5d00863f/ably.d.ts#L733-L746)) do not do so...

bug