Replies: 1 comment
-
Hi! I'm not sure to understand what you are trying to do, could you please explain? Are you trying to use https://serialport.io/docs/api-binding-mock with Socket.IO? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at the documentation for MockBinding but the example is very simple and having a hard time figuring out how to build a more complicated mock binding.
I'm curious, is there a way to create a custom mock binding class that encapsulates all logic, both sending and receiving? Seems like I would have to extend MockPortBinding, but is there a way to tell MockBinding.createPort to use my custom MockPortBinding?
Beta Was this translation helpful? Give feedback.
All reactions