#include <Wt/WApplication.h>
#include <Wt/WContainerWidget.h>
#include <Wt/WEnvironment.h>
#include <Wt/WPushButton.h>
#include <Wt/WServer.h>
#include <Wt/WText.h>
#include <Wt/WTimer.h>
#include "SimpleChatServer.h"
#include "PopupChatWidget.h"
Go to the source code of this file.
◆ createApplication()
Definition at line 142 of file simpleChat.C.
145 return std::make_unique<ChatApplication>(env, server);
◆ createWidget()
Definition at line 148 of file simpleChat.C.
150 return std::make_unique<ChatWidget>(env, server);
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 153 of file simpleChat.C.
155 Wt::WServer server(argc, argv, WTHTTP_CONFIGURATION);
164 std::ref(chatServer)));
167 std::ref(chatServer)),
"/chat.js");
169 if (server.start()) {
171 std::cerr <<
"Shutting down: (signal = " << sig <<
")" << std::endl;
static WT_API int waitForShutdown()
std::unique_ptr< Wt::WApplication > createWidget(const Wt::WEnvironment &env, SimpleChatServer &server)
std::unique_ptr< Wt::WApplication > createApplication(const Wt::WEnvironment &env, SimpleChatServer &server)