Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 1223

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The Swoole\WebSocket\Server class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swoole-websocket-frame.html">Swoole\WebSocket\Frame</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-websocket-server.exist.html">Swoole\WebSocket\Server::exist</a></div>
 <div class="up"><a href="book.swoole.html">Swoole</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.swoole-websocket-server" class="reference">

 <h1 class="title">The Swoole\WebSocket\Server class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PECL swoole &gt;= 1.9.0)</p>


  <div class="section" id="swoole-websocket-server.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="swoole-websocket-server.synopsis">
   <h2 class="title">Class synopsis</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">Swoole\WebSocket\Server</strong>
     </span>
     
     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.swoole-http-server.html" class="classname">Swoole\Http\Server</a>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">boolean</span> <span class="methodname"><a href="swoole-websocket-server.exist.html" class="methodname">exist</a></span>
    ( <span class="methodparam"><span class="type">integer</span> <code class="parameter">$fd</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">ReturnType</span> <span class="methodname"><a href="swoole-websocket-server.on.html" class="methodname">on</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$event_name</code></span>
   , <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">binary</span> <span class="methodname"><a href="swoole-websocket-server.pack.html" class="methodname">pack</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$opcode</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$finish</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$mask</code></span>
  ]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-websocket-server.push.html" class="methodname">push</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$fd</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$opcode</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$finish</code></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">string</span> <span class="methodname"><a href="swoole-websocket-server.unpack.html" class="methodname">unpack</a></span>
    ( <span class="methodparam"><span class="type"><span class="type binary">binary</span></span> <code class="parameter">$data</code></span>
   )</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Inherited methods */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-http-server.on.html" class="methodname">Swoole\Http\Server::on</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$event_name</code></span>
   , <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-http-server.start.html" class="methodname">Swoole\Http\Server::start</a></span>
    ( <span class="methodparam">void</span>
   )</div>


   }</div>


  </div>

 </div>

 




































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-websocket-server.exist.html">Swoole\WebSocket\Server::exist</a> — Check if the the file description is existed.</li><li><a href="swoole-websocket-server.on.html">Swoole\WebSocket\Server::on</a> — Register event callback function</li><li><a href="swoole-websocket-server.pack.html">Swoole\WebSocket\Server::pack</a> — Get a pack of binary data to send in a single frame.</li><li><a href="swoole-websocket-server.push.html">Swoole\WebSocket\Server::push</a> — Push data to the remote client.</li><li><a href="swoole-websocket-server.unpack.html">Swoole\WebSocket\Server::unpack</a> — Unpack the binary data received from the client.</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swoole-websocket-frame.html">Swoole\WebSocket\Frame</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-websocket-server.exist.html">Swoole\WebSocket\Server::exist</a></div>
 <div class="up"><a href="book.swoole.html">Swoole</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>