Open Swoole PHPOpen Swoole PHP
HomeNewsDocsCommunity
Github

Community

Join 4,000+ others and never miss out on new tips, tutorials, and more.

GithubTwitterNewsletterSlackDiscordSupport
  • Introduction
  • Get started with Open Swoole
  • Installation
  • Background Knowledge
  • Common Questions
  • Open Swoole Class Alias
  • Open Swoole Features
  • Open Swoole Event Loop API
  • Open Swoole Timer
  • Open Swoole Protocols
  • Open Swoole Tools
  • TCP/UDP Server
  • HTTP Server
  • WebSocket Server
  • MQTT Server
  • GRPC Server
  • PHP Coroutine / PHP Fiber
  • Coroutine System
  • Coroutine Channel
  • Coroutine WaitGroup
  • Coroutine Co un
  • Coroutine TCP Server
  • Coroutine HTTP Server
  • Coroutine Library
  • Coroutine Hooks
  • Coroutine TCP/UDP Client
  • Coroutine HTTP Client
  • Coroutine HTTP2 Client
  • Coroutine Socket Client
  • Coroutine FastCGI Client
  • Coroutine Redis Client
  • Coroutine MySQL Client
  • Coroutine Postgres Client
  • Multiprocessing
  • Process
  • Process Pool
  • Table
  • Atomic
  • Lock
  • Twitter
  • Slack Group
  • Support
  1. Home
  2. Docs
  3. 4.x
  4. Modules

Swoole Server Methods

4.x is outdated, please check the latest version 25.x


Latest version: pecl install openswoole-25.2.0

Introduction

Swoole Server provides the API to write TCP, UDP, Unix Socket asynchronous servers. It supports IPv4, IPv6, one Way, two Way SSL and TLS Encryption. Developers do not have to know the internal implementations, only have to write the logics of the server in the callback functions.

Methods

  • Swoole\Server::__construct
  • Swoole\Server->set
  • Swoole\Server->on
  • Swoole\Server->listen
  • Swoole\Server->addListener
  • Swoole\Server->addProcess
  • Swoole\Server->start
  • Swoole\Server->reload
  • Swoole\Server->stop
  • Swoole\Server->shutdown
  • Swoole\Server->tick
  • Swoole\Server->after
  • Swoole\Server->defer
  • Swoole\Server->clearTimer
  • Swoole\Server->close
  • Swoole\Server->send
  • Swoole\Server->sendfile
  • Swoole\Server->sendto
  • Swoole\Server->sendwait
  • Swoole\Server->sendMessage
  • Swoole\Server->exist
  • Swoole\Server->pause
  • Swoole\Server->resume
  • Swoole\Server->getClientInfo
  • Swoole\Server->getClientList
  • Swoole\Server->bind
  • Swoole\Server->stats
  • Swoole\Server->task
  • Swoole\Server->taskCo
  • Swoole\Server->taskWait
  • Swoole\Server->taskWaitMulti
  • Swoole\Server->finish
  • Swoole\Server->heartbeat
  • Swoole\Server->getLastError
  • Swoole\Server->getSocket
  • Swoole\Server->protect
  • Swoole\Server->getCallback
  • Swoole\Server->getReceivedTime
  • Swoole\Server->getWorkerId
  • Swoole\Server->getWorkerPid
  • Swoole\Server->getManagerPid
  • Swoole\Server->getMasterPid
Last updated on August 31, 2022
⭐ at GithubFollow TwitterSubscribe NewsletterJoin SlackJoin Discord

Open Swoole

Open Swoole is an open source production ready high performance coroutine fiber async solution for PHP, previously named Swoole.

Quick Links

  • How it works
  • Swoole Labs
  • Get Started
  • Open Swoole Frameworks
  • Supported Versions
  • Open Swoole Book
  • Open Swoole Examples
  • Open Swoole Github
  • Trademark Policy

Copyright © 2017 - 2025, Transfon Ltd, all rights reserved.

Swoole® and OpenSwoole™ are trademarks Swoole Labs, Transfon Ltd, all rights reserved.

Contact Us: [email protected]