Sign in
chromium
/
external
/
github.com
/
kripken
/
emscripten
/
HEAD
/
.
/
test
/
websocket
/
test_websocket_new.c
blob: 8d5b0090ea2170b74f6cfcfdc13b243b8c0244b3 [
file
]
#include
<emscripten/websocket.h>
#include
<assert.h>
int
main
()
{
EMSCRIPTEN_WEBSOCKET_T s
=
emscripten_websocket_new
(&(
EmscriptenWebSocketCreateAttributes
){
.
url
=
"ws://localhost:9000"
,
.
protocols
=
"text"
,
});
assert
(
s
>
0
);
return
0
;
}