my-app
    Preparing search index...
    Index

    Constructors

    Methods

    • Add a vote for a sketch with server-side validation. Ensures only one vote per type per user per idea - automatically removes old vote if it exists.

      Parameters

      • sessionCode: string

        The session code

      • userId: string

        The user ID (typically the socket client ID)

      • sketchId: string

        The sketch/drawing ID to vote for

      • voteType: VoteType

        The type of vote (dreamer, realist, criticer)

      Returns void

    • Remove a vote from a sketch.

      Parameters

      • sessionCode: string

        The session code

      • userId: string

        The user ID (typically the socket client ID)

      • sketchId: string

        The sketch/drawing ID to remove vote from

      • voteType: VoteType

        The type of vote to remove (dreamer, realist, criticer)

      Returns void