Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward server message error in windows(64/32) #145

Open
vegalou opened this issue Feb 7, 2022 · 2 comments
Open

Forward server message error in windows(64/32) #145

vegalou opened this issue Feb 7, 2022 · 2 comments

Comments

@vegalou
Copy link

vegalou commented Feb 7, 2022

@vi

Dear Vitaly Shukela:

Thanks for your help and effort on this Project websocat

Since last issue, I could redirect websocket server message in Linux. websocat_linux64 works fine as expected for forwarding.

https://github.com/vi/websocat/issues/143

There is one difference between linux and windows version, I'd try both win64 and win32 versions(1.9.0 & 1.8.0),

ig, client connect to server in Linux, message wrote in debug file:

websocat -nu -t "ws://myServer.com/my_channel_1?_=1643278479722&tag=&time=&eventid=" foreachmsg:sh-c:"curl -s -X POST http://127.0.0.1/tool/post.php -d @-"

Redirection works as expected. But in Windows versions, error message shows in conosle:

[ERROR websocat::foreachmsg_peer] Reconnecting failed. Trying again in tight end less loop.

Message not forwarded after above message.

Thank you for your assistance sincerelly.

Best Regards.

@vi
Copy link
Owner

vi commented May 12, 2022

Assuming you want to forward server errors from the curl part of the command line, you can use curl's -v option to print diagnistics to stderr (it won't get into Websocat, but directory to console).

Otherwise I don't understand what server message error you are asking about. Do you mean the CloseFrame content?

@vegalou
Copy link
Author

vegalou commented May 13, 2022

Hi vi,

I'm trying to use Websocat as a Websocket Client forward received message to http server. Linux version of Websocat works correctly, but windows version shows the message without forwarding.

[ERROR websocat::foreachmsg_peer] Reconnecting failed. Trying again in tight end less loop.

I could work it out in Pure PHP Websocket Client, thanks for your share and help.

@vi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants