Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

callerが接続時に送る messages が空のとき、actor側で受け取るデータは undefined にしてほしい #19

Open
FujiHaruka opened this issue Apr 14, 2017 · 0 comments
Assignees

Comments

@FujiHaruka
Copy link

FujiHaruka commented Apr 14, 2017

@okunishinishi
これができるようになってほしいが、エラーで落ちる。

  actor.on(JOIN, async ({ caller, messages = {} }) => {
      console.log(messages) // null
      let { token } = messages
      let ok = false
      if (ok) {
        console.log('Add', caller.key)
        eventFilter.add(caller.key)
      }
  })
@FujiHaruka FujiHaruka changed the title a callerが接続時に送る messages が空のとき、actor側で受け取るデータは undefined にしてほしい Apr 14, 2017
@okunishinishi okunishinishi self-assigned this Apr 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants