Hi all, I'm using the Emscripten websocket-callback API (i.e. emscripten_websocket_set_onopen_callback(), emscripten_websocket_set_onmessage_callback(), emscripten_websocket_set_onerror_callback(), and emscripten_websocket_set_onclose_callback()) to do WebSocket I/O, and it's working fine, but I'm a little puzzled about the purpose of the "int eventType" argument that gets passed to my callback-functions.
- What values should I expect to receive in that parameter? I can't find any likely candidates in the emsdk header files, and the documentation doesn't mention any. - Is there some reason why the eventType parameter is passed as a separate argument, instead of being included in the EmscriptenWebSocketXXXEvent struct with the rest of the information describing the event? Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/4b1b6a93-7b3f-4351-b76b-3e8352051d88n%40googlegroups.com.
