Skip to content

Support symbols as key in UserData #1184

@dragosnicolae

Description

@dragosnicolae

Hello,

Starting from the Upgrade.js example, I tried storing the values I need (taken from some headers) under a symbol on the UserData object. The issue is the symbol is not present on the UserData in the 'open' handler, seems like only string properties are copied.

Could symbol properties also be propagated? I find this useful as using symbols won't pollute the ws object.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions