emscripten-core / emscripten-core/emscripten
Question about -s WEBSOCKET_SUBPROTOCOL=null and -s PROXY_POSIX_SOCKETS=1
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Hello everyone
I have set -s WEBSOCKET_SUBPROTOCOL=null without call emscripten_init_websocket_to_posix_socket_bridge function
the server side works fine(websocketpp)
then I have set -s PROXY_POSIX_SOCKETS=1,and call emscripten_init_websocket_to_posix_socket_bridge ,receved size is not what I expected,is it ignore handshake=null while set -s PROXY_POSIX_SOCKETS=1?
the code link
[Server](https://github.com/fatmingwang/FM79979/blob/master/Src/FM79979Engine/EmptyProject/EngineTest/WebsocketServer.cpp#L233)
[Client](https://github.com/fatmingwang/FM79979/blob/master/Src/FM79979Engine/Core/Network/GameNetWork.cpp#L16)
Contributor guide
Assessment
This issue has not been assessed yet.