-
Notifications
You must be signed in to change notification settings - Fork 160
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
Changing query string parameter #92
Comments
No this isn't possible. If you want to send to a different url later you will have to close and open again to a different endpoint/url.
… On Jun 15, 2019, at 11:08 PM, EhsanVahab ***@***.***> wrote:
Hi @bsergean <https://github.com/bsergean>
is it possible to change query string parameter after socket connection is established without closing and opening it again?
for example?
ix::WebSocket webSocket;
webSocket.setOnMessageCallback(
[](ix::WebSocketMessageType messageType,
const std::string& str,
size_t wireSize,
const ix::WebSocketErrorInfo& error,
const ix::WebSocketOpenInfo& openInfo,
const ix::WebSocketCloseInfo& closeInfo)
{
if (messageType == ix::WebSocketMessageType::Message)
{
std::cout << str << std::endl;
}
});
url="http://mysocketaddress?param=1"
webSocket.setUrl(url);
webSocket.start();
webSocket.send(str)
url="http://mysocketaddress?param=2"
webSocket.setUrl(url);
webSocket.send(str)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#92?email_source=notifications&email_token=AC2O6UK2UWZENN4FQ4VLKEDP2XKEXA5CNFSM4HYQORI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZXILVQ>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC2O6UK6CZDNRKN7VA53ID3P2XKEXANCNFSM4HYQORIQ>.
|
My idea was completely wrong. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @bsergean
is it possible to change query string parameter after socket connection is established without closing and opening it again?
for example?
The text was updated successfully, but these errors were encountered: