0%

Simple Websocket

Simple Websocket Writen in PHP and Javascript

Websocket How to
JavascriptDownload
JS Usage Example
By Variable OR Const
const start_socket = false;
if (start_socket){
  socket_start();
}
      
By Element Exists
var websocketElement = document.getElementById('websocket'); //find any elements with id websocket
if (websocketElement){
  socket_start();
}
      
Others

You can use it as your wish. OR using basic example bellow :

if (conditional) {
  socket_start();
}
            

PHPDownload
PHP Usage Example
PHP Normal Usage
$websocket = new WMI_websocket(false, false);
/* Data Example */
$websocket->createData([
  'pendapatan_max_invoice' => 45,
  'piutang_max_invoice' => 55,
  'hutang_max_invoice' => 65,
  'pengeluaran_max_invoice' => 67,
]);
$websocket->SEND();
        
PHP Object Oriented Usage
$websocket = new WMI_websocket(false, false);
$websocket->createData([
  'pendapatan_max_invoice' => 45,
  'piutang_max_invoice' => 55,
  'hutang_max_invoice' => 65,
  'pengeluaran_max_invoice' => 67,
])->SEND();
        
PHP Static Object Oriented Usage
WMI_websocket::i(false, false)->createData([
  'pendapatan_max_invoice' => 45,
  'piutang_max_invoice' => 55,
  'hutang_max_invoice' => 65,
  'pengeluaran_max_invoice' => 67,
])->SEND();
        
    <!--Grid column-->
    <div class="col-md-6 col-lg-5 text-center text-md-left mb-4 mb-md-0">
      <h6 class="mb-0 white-text">Get connected with us on social networks!</h6>
    </div>
    <!--Grid column-->

    <!--Grid column-->
    <div class="col-md-6 col-lg-7 text-center text-md-right">
      <!--Facebook-->
      <a class="fb-ic ml-0" href="//fb.me/secretnetworkforces">
        <i class="fab fa-facebook white-text mr-4"> </i>
      </a>
      <!--Twitter-->
      <a class="tw-ic">
        <i class="fab fa-twitter white-text mr-4"> </i>
      </a>
    </div>
    <!--Grid column-->

  </div>
  <!--Grid row-->
</div>
  <!--First column-->
  <div class="col-md-3 col-lg-4 col-xl-3 mb-4">
    <h6 class="text-uppercase font-weight-bold">
      <strong>WMI</strong>
    </h6>
    <hr class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto" style="width: 60px;">
    <p>Website Manajemen Indonesia, is a site that I developed myself to provide the best experience for clients.
    </p>
  </div>
  <!--/.First column-->

  <!--Second column-->
  <div class="col-md-2 col-lg-2 col-xl-2 mx-auto mb-4">
    <h6 class="text-uppercase font-weight-bold">
      <strong>Products</strong>
    </h6>
    <hr class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto" style="width: 60px;">
    <p>
      We currently have no products to sell
    </p>
  </div>
  <!--/.Second column-->

  <!--Third column-->
  <div class="col-md-3 col-lg-2 col-xl-2 mx-auto mb-4">
    <h6 class="text-uppercase font-weight-bold">
      <strong>Useful links</strong>
    </h6>
    <hr class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto" style="width: 60px;">
    <p>
      <a href="https://www.blogger.com/profile/17555754514989936273" rel="nofollow noopener" title="Blogger Account"
        target="_blank">Blogger Profile</a><br>
      <a href="https://web-manajemen.blogspot.com/2018/11/install-php-web-server-on-termux.html" target="_blank">PHP
        Termux</a><br>
      <a href="https://web-manajemen.blogspot.com/2017/04/instal-php-cli-pada-android-instalasi.html"
        target="_blank" rel="bookmark" title="PHP Android Installation">PHP CLI/Webserver Android</a><br>
      <a href="https://web-manajemen.blogspot.com/2017/09/tutorial-membuat-blogspot-safelink.html" target="_blank"
        rel="bookmark" title="Safelink Blogger V1">Safelink V1</a><br>
      <a href="https://web-manajemen.blogspot.com/2017/09/cara-simple-membuat-blogger-safelink.html" target="_blank"
        rel="bookmark" title="Safelink Blogger V3">Safelink V3</a>
    </p>
  </div>
  <!--/.Third column-->

  <!--Fourth column-->
  <div class="col-md-4 col-lg-3 col-xl-3">
    <h6 class="text-uppercase font-weight-bold">
      <strong>Contact</strong>
    </h6>
    <hr class="deep-purple accent-2 mb-4 mt-0 d-inline-block mx-auto" style="width: 60px;">
    <p>
      <i class="fa fa-home mr-3"></i> Jl. Peneleh Gg. III No.22RT.003/RW.03, Peneleh, Kec. Genteng, Kota SBY, Jawa
      Timur 60274
    </p>
    <p>
      <i class="fa fa-envelope mr-3"></i> <a href="mailto:webmanajemen@gmail.com">webmanajemen@gmail.com</a></p>
    <p><i class="fa fa-phone mr-3"></i> <i class="fab fa-whatsapp"></i> + 62 856 5566 7573</p>
  </div>
  <!--/.Fourth column-->

</div>
Adblock detected

We have detected that you are using adblock in your browser

×

We have detected that you are using adblock in your browser on page Simple Websocket you've visited.

Our website is made possible by displaying online advertisements to our visitors.

    Our advertiser
  • Google Adsense

Please consider supporting us by disabling your ad blocker. Thank you.