mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-07 10:34:54 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@6711 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
53f32724e3
commit
a037d8eb54
1 changed files with 2 additions and 1 deletions
|
|
@ -15,8 +15,9 @@ CONSOLE_APP_MAIN
|
|||
}
|
||||
|
||||
for(;;) {
|
||||
TcpSocket socket;
|
||||
WebSocket ws;
|
||||
if(ws.WebAccept(server)) {
|
||||
if(socket.Accept(server) && ws.WebAccept(socket)) {
|
||||
LOG("Accepted connection");
|
||||
LOG(ws.Recieve());
|
||||
ws.SendText("Hello browser!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue