Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace PHPDaemon\SockJS\Examples; class SimpleRoute extends \PHPDaemon\WebSocket..

Decoded Output download

<?php
namespace PHPDaemon\SockJS\Examples;

class SimpleRoute extends \PHPDaemon\WebSocket\Route
{
    /**
     * Called when new frame received.
     * @param string  Frame's contents.
     * @param integer Frame's type.
     * @return void
     */
    public function onFrame($data, $type)
    {
        D($data);
        if ($data === 'ping') {
            $this->client->sendFrame('pong');
        }
    }

    /**
     * Uncaught exception handler
     * @param $e
     * @return boolean|null Handled?
     */
    public function handleException($e)
    {
        $this->client->sendFrame('exception ...');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
namespace PHPDaemon\SockJS\Examples;

class SimpleRoute extends \PHPDaemon\WebSocket\Route
{
    /**
     * Called when new frame received.
     * @param string  Frame's contents.
     * @param integer Frame's type.
     * @return void
     */
    public function onFrame($data, $type)
    {
        D($data);
        if ($data === 'ping') {
            $this->client->sendFrame('pong');
        }
    }

    /**
     * Uncaught exception handler
     * @param $e
     * @return boolean|null Handled?
     */
    public function handleException($e)
    {
        $this->client->sendFrame('exception ...');
    }
}

Function Calls

None

Variables

None

Stats

MD5 91c1d48706ed311214b7f984d5f4f82e
Eval Count 0
Decode Time 84 ms