Skip to content

Commit f6b4846

Browse files
committed
use macro for host url
1 parent 7da44f0 commit f6b4846

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/QT/SioChatDemo/mainwindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include <functional>
44
#include <mutex>
55
#include <cstdlib>
6+
7+
#define kURL "ws://localhost:3000"
68
#ifdef WIN32
79
#define BIND_EVENT(IO,EV,FN) \
810
do{ \
@@ -113,7 +115,7 @@ void MainWindow::NicknameAccept()
113115
m_name = m_dialog->getNickname();
114116
if(m_name.length()>0)
115117
{
116-
_io->connect("ws://localhost:3000");
118+
_io->connect(kURL);
117119
}
118120
}
119121

0 commit comments

Comments
 (0)