# Lightspeed, build real time apps the Laravel way (+asteroid…

Hi HN! Laravel has worked with websockets for years but generally speaking it's a one way push architecture (i.e. http in, sockets out). Lightspeed is kind of like node in that it's a single server that serves your http and your websockets all under one roof. Auth runs in 0.03ms (a Redis read, no d…

- **Page:** https://magpie.gallery/i/lightspeed-build-real-time-apps-the-laravel-way-as-q8qd
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** laravel, websockets, realtime, server, php

## Source

Web · jv22222: Lightspeed, build real time apps the Laravel way (+asteroids demo)

- **Original:** https://news.ycombinator.com/item?id=49781032

> Hi HN! Laravel has worked with websockets for years but generally speaking it's a one way push architecture (i.e. http in, sockets out). Lightspeed is kind of like node in that it's a single server that serves your http and your websockets all under one roof. Auth runs in 0.03ms (a Redis read, no database). Your Laravel handler runs inside the full container and the reply comes back down the same socket. I think this could be really cool for creating new ways of working with Laravel. Anyway, I put together a live demo to show it in action. Basically a cross between slither.io and Asteroids. Game here: https://innerloop.works/lightspeed Repo here: https://github.com/innerloop-dev/lightspeed Note: This is 0.1.0, the API may change before 1.0. It needs the Swoole extension and Redis. MIT.

## GitHub projects

- https://github.com/innerloop-dev/lightspeed

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
