Open freehuntx opened 5 months ago
Note:
The above "workaround" is already working so it should be possible to add this feature. You can see it in action here: https://github.com/freehuntx/bomberpengu
This workaround messes with js internals which is not a good idea. So a proper api would be a cleaner solution.
Describe the feature Additionally to "socketProxy" it would be nice to be able to add custom socket handler that lets us implement the tcp server logic ourself.
Effectively mocking the TCP connection.
Workaround Currently we can set a socketProxy and hook the
window.WebSocket
class to achieve this.Proposal