-
Notifications
You must be signed in to change notification settings - Fork 19
Allow for browserWSEndpoint
in connect
#8
Comments
Glad you find it useful :)
I'm afraid that it's not possible: I can help with the second one, but separately from Foxr, because such functionality doesn't make sense without a "backend". What do you think? Please correct me if I'm wrong. |
Also:
from here, which is not so true in case of TCP and Marionette protocol in particular – at least from a receiver side messages can arrive in multiple chunks through the so called "json-wire protocol". I'm going to decouple and publish my re-implementation separately soon. |
Thanks for the context, that makes a lot of sense. Let me say it another way to make sure I follow, because the project I work on essentially acts a WebSocket server with more bells and whistles.
Does that roughly sound correct? |
We could keep it purely TCP based since that seems to be the lowest-common-denominator here, and would make the most sense from a maintenance perspective. Let me snoop around the NodeJS docs for a bit. |
I believe that the 2 in your list should be done outside of Foxr as some kind of TCP<->WS proxy, so Foxr will know nothing about it. At the end it's just streams on both sides, you just need to buffer chunked Marionette messages. |
If only I have time I'd implement this as |
Thanks for the info, I wouldn't worry about more packages at the moment. I'm going to toy with this and report back to this issue with findings! Thanks! |
Feel free to ping me here again if something new appears. |
Thanks so much for building this out, lots of work 🙂
To get symmetry with how puppeteers interface works it’d be awesome to allow for a fully-qualified URL vs host/port. This allows for other systems to better integrate (in my selfish case, browserless).
I’d be more than happy to submit a PR if this sounds good. Thanks again!
The text was updated successfully, but these errors were encountered: