// //------------------ DOK FILE -------------------------------------------------- +Header core.net.websocket =pkg core.net.websocket =title core.net.websocket =short =desc Documentation in progress... // // //------------------ PROTO ----------------------------------------------------- WebSocket +Proto WebSocket =type WebSocket =mode structure =pkg core.net.websocket =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- wsClose +Proto wsClose =type fun WebSocket -> Int =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg h =type WebSocket =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- wsSend +Proto wsSend =type fun WebSocket Int Str -> Int =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg h =type WebSocket =desc // +arg opcode =type Int =desc // +arg data =type Str =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- wsConnect +Proto wsConnect =type fun WebSocket (fun -> a1) (fun Int Str -> a2) -> Bool =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg h =type WebSocket =desc // +arg cbReady =type fun -> a1 =desc // +arg cbMessage =type fun Int Str -> a2 =desc // +arg result =type Bool =desc // // //------------------ PROTO ----------------------------------------------------- wsCreate +Proto wsCreate =type fun Str Str Str -> WebSocket =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg verb =type Str =desc // +arg url =type Str =desc // +arg version =type Str =desc // +arg result =type WebSocket =desc // // //------------------ PROTO ----------------------------------------------------- wsGetReplyHeaders +Proto wsGetReplyHeaders =type fun WebSocket -> (hashmap Str -> Str) =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg h =type WebSocket =desc // +arg result =type hashmap Str -> Str =desc // // //------------------ PROTO ----------------------------------------------------- wsGetStatus +Proto wsGetStatus =type fun WebSocket -> [Str Int Str] =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg h =type WebSocket =desc // +arg result =type [Str Int Str] =desc // // //------------------ PROTO ----------------------------------------------------- wsGetRemote +Proto wsGetRemote =type fun WebSocket -> [Str Int] =mode function =pkg core.net.websocket =impl mcy =link =desc // +arg h =type WebSocket =desc // +arg result =type [Str Int] =desc // // //------------------ PROTO ----------------------------------------------------- wsCreate12 +Proto wsCreate12 =type fun Str Str Str -> WebSocket =mode Function =pkg core.net.websocket =impl mcy =link =desc // +arg verb =type Str =desc // +arg url =type Str =desc // +arg version =type Str =desc // +arg result =type WebSocket =desc // // //------------------ PROTO ----------------------------------------------------- WS_OPCODE_TEXT +Proto WS_OPCODE_TEXT =type Int =mode constant =pkg core.net.websocket =impl mcy =link =desc