Skip to content
Discussion options

You must be logged in to vote

Yep... it seems like there's something missmatching on the types of Function.

However, you have an easy workaround by using fromEventPattern:

const fromSignalREvent = (connection: HubConnection, eventName: string) =>
  fromEventPattern(
    handler => connection.on(eventName, handler),
    handler => connection.off(eventName, handler)
  )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cartant
Comment options

cartant Mar 18, 2021
Collaborator

Answer selected by kosmakoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants