MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / CloseWebSocket

Function CloseWebSocket

tools/websocket_to_posix_proxy/src/main.cpp:153–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void CloseWebSocket(int client_fd) {
154 printf("Closing WebSocket connection %d\n", client_fd);
155 CloseAllSocketsByConnection(client_fd);
156 shutdown(client_fd, SHUTDOWN_BIDIRECTIONAL);
157 CLOSE_SOCKET(client_fd);
158}
159
160const char *WebSocketOpcodeToString(int opcode) {
161 static const char *opcodes[] = {

Callers 1

connection_threadFunction · 0.85

Calls 3

printfFunction · 0.85
shutdownFunction · 0.50

Tested by

no test coverage detected