eee
This commit is contained in:
@@ -1,14 +1 @@
|
||||
<?php
|
||||
|
||||
use function Swoole\Coroutine\run;
|
||||
|
||||
run(function () {
|
||||
|
||||
$channel = new \Swoole\Coroutine\Channel(100);
|
||||
for ($i = 0; $i < 90; $i++) {
|
||||
$channel->push(100);
|
||||
}
|
||||
$channel->close();
|
||||
$channel = null;
|
||||
var_dump($channel);
|
||||
});
|
||||
+1
-1
@@ -50,7 +50,7 @@
|
||||
}
|
||||
|
||||
function connect() {
|
||||
sock = new WebSocket('ws://127.0.0.1:9528/222');
|
||||
sock = new WebSocket('wss://center-wss.stupideyes.com/ws?access_token=6648f48a-466ba-6394-70527ef8b-bc47b8');
|
||||
sock.onopen = function () {
|
||||
if (tick) {
|
||||
clearInterval(tick)
|
||||
|
||||
Reference in New Issue
Block a user