Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. meetsreekanth
meetsreekanth

meetsreekanth

@meetsreekanth

Chat Follow Unfollow
0
Reputation
1
Posts
868
Profile views
0
Followers
0
Following
Joined 1 Apr 2020, 08:50 Last Online 1 Apr 2020, 09:08

  • 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 • 1 Apr 2020, 08:57

© 2023 Endel Dreyer