Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > b4603fcd3afb71dfbec25f4867b993f4 > files > 262

js_of_ocaml-doc-2.4.1-2.mga5.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Dom_svg.html">
<link rel="next" href="File.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="CSS" rel="Chapter" href="CSS.html">
<link title="Dom" rel="Chapter" href="Dom.html">
<link title="Dom_events" rel="Chapter" href="Dom_events.html">
<link title="Dom_html" rel="Chapter" href="Dom_html.html">
<link title="Dom_svg" rel="Chapter" href="Dom_svg.html">
<link title="EventSource" rel="Chapter" href="EventSource.html">
<link title="File" rel="Chapter" href="File.html">
<link title="Firebug" rel="Chapter" href="Firebug.html">
<link title="Form" rel="Chapter" href="Form.html">
<link title="Js" rel="Chapter" href="Js.html">
<link title="Json" rel="Chapter" href="Json.html">
<link title="Jsonp" rel="Chapter" href="Jsonp.html">
<link title="Keycode" rel="Chapter" href="Keycode.html">
<link title="Lwt_js" rel="Chapter" href="Lwt_js.html">
<link title="Lwt_js_events" rel="Chapter" href="Lwt_js_events.html">
<link title="Regexp" rel="Chapter" href="Regexp.html">
<link title="Sys_js" rel="Chapter" href="Sys_js.html">
<link title="Typed_array" rel="Chapter" href="Typed_array.html">
<link title="Url" rel="Chapter" href="Url.html">
<link title="WebGL" rel="Chapter" href="WebGL.html">
<link title="WebSockets" rel="Chapter" href="WebSockets.html">
<link title="XmlHttpRequest" rel="Chapter" href="XmlHttpRequest.html">
<link title="Lwt_log_js" rel="Chapter" href="Lwt_log_js.html">
<link title="JsooTop" rel="Chapter" href="JsooTop.html">
<link title="Ocamlbuild_js_of_ocaml" rel="Chapter" href="Ocamlbuild_js_of_ocaml.html">
<link title="Deriving_Json" rel="Chapter" href="Deriving_Json.html">
<link title="Deriving_Json_lexer" rel="Chapter" href="Deriving_Json_lexer.html">
<link title="Pa_deriving_Json" rel="Chapter" href="Pa_deriving_Json.html"><title>EventSource</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Dom_svg.html" title="Dom_svg">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="File.html" title="File">Next</a>
</div>
<h1>Module <a href="type_EventSource.html">EventSource</a></h1>

<pre><span class="keyword">module</span> EventSource: <code class="code">sig</code> <a href="EventSource.html">..</a> <code class="code">end</code></pre><div class="info module top">
EventSource binding<br>
</div>
<hr width="100%">

<pre><code><span id="TYPEstate"><span class="keyword">type</span> <code class="type"></code>state</span> = </code></pre><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTstate.CONNECTING"><span class="constructor">CONNECTING</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTstate.OPEN"><span class="constructor">OPEN</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTstate.CLOSED"><span class="constructor">CLOSED</span></span></code></td>

</tr></table>



<pre><span id="TYPEmessageEvent"><span class="keyword">class type</span> <code class="type">['a]</code> <a href="EventSource.messageEvent-c.html">messageEvent</a></span> = <code class="code">object</code> <a href="EventSource.messageEvent-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEeventSource"><span class="keyword">class type</span> <a href="EventSource.eventSource-c.html">eventSource</a></span> = <code class="code">object</code> <a href="EventSource.eventSource-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEoptions"><span class="keyword">class type</span> <a href="EventSource.options-c.html">options</a></span> = <code class="code">object</code> <a href="EventSource.options-c.html">..</a> <code class="code">end</code></pre>
<pre><span id="VALwithCredentials"><span class="keyword">val</span> withCredentials</span> : <code class="type">bool -> <a href="EventSource.options-c.html">options</a> <a href="Js.html#TYPEt">Js.t</a></code></pre>
<pre><span id="VALeventSource"><span class="keyword">val</span> eventSource</span> : <code class="type">(<a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="EventSource.eventSource-c.html">eventSource</a> <a href="Js.html#TYPEt">Js.t</a>) <a href="Js.html#TYPEconstr">Js.constr</a></code></pre>
<pre><span id="VALeventSource_options"><span class="keyword">val</span> eventSource_options</span> : <code class="type">(<a href="Js.js_string-c.html">Js.js_string</a> <a href="Js.html#TYPEt">Js.t</a> -><br>        <a href="EventSource.options-c.html">options</a> <a href="Js.html#TYPEt">Js.t</a> -> <a href="EventSource.eventSource-c.html">eventSource</a> <a href="Js.html#TYPEt">Js.t</a>)<br>       <a href="Js.html#TYPEconstr">Js.constr</a></code></pre>
<pre><span id="VALaddEventListener"><span class="keyword">val</span> addEventListener</span> : <code class="type">(#<a href="EventSource.eventSource-c.html">eventSource</a> as 'a) <a href="Js.html#TYPEt">Js.t</a> -><br>       'b <a href="Dom.Event.html#TYPEtyp">Dom.Event.typ</a> -><br>       ('a <a href="Js.html#TYPEt">Js.t</a>, 'b) <a href="Dom.html#TYPEevent_listener">Dom.event_listener</a> -> bool <a href="Js.html#TYPEt">Js.t</a> -> <a href="Dom.html#TYPEevent_listener_id">Dom.event_listener_id</a></code></pre><div class="info ">
Add an event listener.  This function matches the
      <code class="code">addEventListener</code> DOM method, except that it returns
      an id for removing the listener.<br>
</div>
</body></html>