Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
25863b59
Commit
25863b59
authored
Sep 21, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sending MG_WEBSOCKET_CLOSE
parent
72c861bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
mongoose.c
mongoose.c
+1
-0
mongoose.h
mongoose.h
+1
-1
No files found.
mongoose.c
View file @
25863b59
...
@@ -3710,6 +3710,7 @@ static void handle_websocket_request(struct mg_connection *conn) {
...
@@ -3710,6 +3710,7 @@ static void handle_websocket_request(struct mg_connection *conn) {
send_websocket_handshake
(
conn
);
send_websocket_handshake
(
conn
);
call_user
(
conn
,
MG_WEBSOCKET_READY
);
call_user
(
conn
,
MG_WEBSOCKET_READY
);
read_websocket
(
conn
);
read_websocket
(
conn
);
call_user
(
conn
,
MG_WEBSOCKET_CLOSE
);
}
}
}
}
...
...
mongoose.h
View file @
25863b59
...
@@ -62,7 +62,7 @@ enum mg_event {
...
@@ -62,7 +62,7 @@ enum mg_event {
// with handshake, otherwise it closes the connection.
// with handshake, otherwise it closes the connection.
MG_WEBSOCKET_READY
,
// Handshake has been successfully completed.
MG_WEBSOCKET_READY
,
// Handshake has been successfully completed.
MG_WEBSOCKET_MESSAGE
,
// Incoming message from the client
MG_WEBSOCKET_MESSAGE
,
// Incoming message from the client
MG_WEBSOCKET_CLOSE
,
// Client has
sent FIN frame
MG_WEBSOCKET_CLOSE
,
// Client has
closed the connection
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment