Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

WebSocket patching fails on Safari 7.0 for onopen, onmessage, onclose, onerror properties #88

@IgorMinar

Description

@IgorMinar

When zone detects that we can't patch prototype descriptors, we call patchWebSocketProperties which tries to patch onmessage and friends via descriptors on the instance. This works in Chrome <43 but not in Safari 7.0 where even instance descriptors are not configurable.

Potential fix would be to return a proxy object similar to how patchClass works and intercept all of the property getters and setters via the proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions