# How to use socket.io in Slim Framework

**URL:** <https://discourse.slimframework.com/t/how-to-use-socket-io-in-slim-framework/5583>\
**Category:** Questions\
**Created:** [April 1, 2023, 10:55pm UTC](https://discourse.slimframework.com/t/how-to-use-socket-io-in-slim-framework/5583 "2023-04-01T22:55:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edev5](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@edev5](https://discourse.slimframework.com/u/edev5)\
**Post date:** [April 1, 2023, 10:55pm UTC](https://discourse.slimframework.com/t/how-to-use-socket-io-in-slim-framework/5583/1 "2023-04-01T22:55:05Z")

</div>

It is possible to use Slim Framework as a server for [socket.io](http://socket.io) ?

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [April 2, 2023, 4:24pm UTC](https://discourse.slimframework.com/t/how-to-use-socket-io-in-slim-framework/5583/2 "2023-04-02T16:24:02Z")

</div>

PHP’s “Shared-Nothing Architecture” is not specifically designed to be used as a server for [Socket.IO](http://Socket.IO), which is a real-time web socket library used for bidirectional communication between the client and server.

Alternatively, you could use a different PHP library that is specifically designed for handling web sockets, such as [ReactPHP](https://reactphp.org/), Ratchet or Swoole. These libraries provide a more robust solution for handling web sockets.
