img
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$address = '0.0.0.0'; | |
$port = 12345; | |
// Create WebSocket. | |
$server = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); | |
socket_set_option($server, SOL_SOCKET, SO_REUSEADDR, 1); | |
socket_bind($server, $address, $port); | |
socket_listen($server); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AEAJM": { | |
"name": "Ajman", | |
"city": "Ajman", | |
"country": "United Arab Emirates", | |
"alias": [], | |
"regions": [], | |
"coordinates": [ | |
55.5136433, | |
25.4052165 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "Test API swagger document.", | |
"version": "1.0.0", | |
"title": "Test API", | |
"contact": { | |
"email": "cn007b@gmail.com" | |
}, | |
"license": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="root"></div> | |
<script> | |
var host = 'ws://0.0.0.0:12345/websockets.php'; | |
var socket = new WebSocket(host); | |
socket.onmessage = function(e) { | |
document.getElementById('root').innerHTML = e.data; | |
}; | |
</script> |
Here you can find apiproxy
resources for AssignMessage > Set > Path
examples.
More infor you can find here.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
version: "1.0.0" | |
title: "API." | |
description: "API for dispatch lane and flow rack." | |
host: td.to-api.com | |
schemes: | |
- http | |
- https | |
basePath: "/v2" |
NewerOlder