Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Websocket/Facades/Room.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use Illuminate\Support\Facades\Facade;

/**
* @method static this prepare()
* @method static this add($fd, $rooms)
* @method static this delete($fd, $rooms)
* @method static $this prepare()
* @method static $this add($fd, $rooms)
* @method static $this delete($fd, $rooms)
* @method static array getClients($room)
* @method static array getRooms($fd)
*
Expand All @@ -24,4 +24,4 @@ protected static function getFacadeAccessor()
{
return 'swoole.room';
}
}
}
32 changes: 16 additions & 16 deletions src/Websocket/Facades/Websocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
use Illuminate\Support\Facades\Facade;

/**
* @method static this broadcast()
* @method static this to($values)
* @method static this join($rooms)
* @method static this leave($rooms)
* @method static $this broadcast()
* @method static $this to($values)
* @method static $this join($rooms)
* @method static $this leave($rooms)
* @method static boolean emit($event, $data)
* @method static this in($room)
* @method static this on($event, $callback)
* @method static $this in($room)
* @method static $this on($event, $callback)
* @method static boolean eventExists($event)
* @method static mixed call($event, $data)
* @method static boolean close($fd)
* @method static this setSender($fd)
* @method static $this setSender($fd)
* @method static int getSender()
* @method static boolean getIsBroadcast()
* @method static array getTo()
* @method static this reset()
* @method static this middleware($middleware)
* @method static this setContainer($container)
* @method static this setPipeline($pipeline)
* @method static $this reset()
* @method static $this middleware($middleware)
* @method static $this setContainer($container)
* @method static $this setPipeline($pipeline)
* @method static \Illuminate\Contracts\Pipeline\Pipeline getPipeline()
* @method static mixed loginUsing($user)
* @method static this loginUsingId($userId)
* @method static this logout()
* @method static this toUser($users)
* @method static this toUserId($userIds)
* @method static $this loginUsingId($userId)
* @method static $this logout()
* @method static $this toUser($users)
* @method static $this toUserId($userIds)
* @method static string getUserId()
* @method static boolean isUserIdOnline($userId)
*
Expand All @@ -45,4 +45,4 @@ protected static function getFacadeAccessor()
{
return 'swoole.websocket';
}
}
}