Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. meetsreekanth
    meetsreekanth

    meetsreekanth

    @meetsreekanth

    Chat Follow Unfollow
    0
    Reputation
    1
    Posts
    988
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with meetsreekanth
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    meetsreekanth Follow

    Posts made by meetsreekanth

    RE: @filter not working as expected

    Has this been fixed ? I am trying to use Filters to hide other players Hand in a card game but I face an issue

    Firstly, I get typescript error saying Schema of Value does not match
    Argument of type '(this: PlayerTurn, value: ArraySchema<Card>, client: Client, root?: GameState) => boolean' is not assignable to parameter of type 'FilterCallback<PlayerTurn, Schema, GameState>'.
    Types of parameters 'client' and 'value' are incompatible.
    Type 'Schema' is not assignable to type 'Client'.
    Type 'Schema' is missing the following properties from type 'WebSocket': binaryType, bufferedAmount, extensions, protocol, and 32 more.ts(2345)

    If i change the value to the Type itself, the filter is never invoked.

    posted in Questions & Help •