Skip to content

Persistent state between RPC requests #138

@richardartoul

Description

@richardartoul

I know this isn't part of the WAMP spec, but it would be a nice feature to support persisting some amount of state between RPC requests. The example I have in mind is that I'm authenticating users WAMP sessions with API keys. Once the WAMP connection is established, I don't want to have to hit the database everytime I receive an RPC to lookup which user is associated with the API key.

If I was using traditional websockets it would be trivial to cache the user in local scope for some amount of time such that only the associated websocket connection has access to it.

The existing turnpike interface makes doing this fairly difficult.

What are your thoughts? I'm happy to take a stab at implementing the feature, just want confirmation that it would be considered useful / merged if I did so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions