Skip to content

Commit 454f88f

Browse files
committed
fix
1 parent 8dd2c45 commit 454f88f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/HubConnectionSample/HubConnectionSample.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class logger : public signalr::log_writer
1818
}
1919
};
2020

21-
void send_message(signalr::hub_connection& connection, const std::string& message)
21+
void send_message(std::shared_ptr<signalr::hub_connection> connection, const std::string& message)
2222
{
2323
std::vector<signalr::value> arr { std::string("c++"), message };
2424
signalr::value args(arr);
2525

2626
// if you get an internal compiler error uncomment the lambda below or install VS Update 4
27-
connection.invoke("Send", args, [](const signalr::value& value, std::exception_ptr exception)
27+
connection->invoke("Send", args, [](const signalr::value& value, std::exception_ptr exception)
2828
{
2929
try
3030
{
@@ -88,7 +88,7 @@ void chat()
8888
break;
8989
}
9090

91-
//send_message(connection, message);
91+
send_message(connection, message);
9292
}
9393

9494
connection->stop([&task](std::exception_ptr exception)

0 commit comments

Comments
 (0)