Client -> Server Message Example:
{
token: string|null - The session token
type: string - The message type
payload: object - The payload of the message
}
(function() { | |
var output = $("<pre>"); | |
$("body").append(output); | |
window.write = function() { | |
var message = arguments[0]; | |
var formatted = message; | |
if (arguments.length > 1) { |
function Debounce(timeout) { | |
this._timeout = timeout; | |
this._registry = {}; | |
} | |
Debounce.prototype.run = function(callback) { | |
var registry = this._registry; | |
if (registry[callback]) { | |
clearTimeout(registry[callback]); | |
} |
class SessionController | |
{ | |
@Route("Session:login") | |
login(payload) { | |
// ... | |
} | |
} |
class SessionController | |
{ | |
construct() { | |
this.routes = { | |
"Session:login": this.login | |
} | |
} | |
login(payload) { | |
// ... |
### Keybase proof | |
I hereby claim: | |
* I am reanmachine on github. | |
* I am reanmachine (https://keybase.io/reanmachine) on keybase. | |
* I have a public key whose fingerprint is 0C22 1776 4C81 EC02 6145 0840 0CF0 F84F EA93 D5C6 | |
To claim this, I am signing this object: |
^
< >
| | WHOO HOO HERE WE GO !!!!!!!!!
| |
| |
" | ^ | "
| || | | || |
| || ( ) || |
|_|| "_" ||_| ON THE WAY TO THE SURFACE OF THE SUN
<?php | |
$timezones = [ | |
'America/Nuuk', | |
'Asia/Qostanay', | |
'Europe/Kyiv', | |
'Pacific/Kanton', | |
]; | |
foreach ($timezones as $tz) { |