Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

252
Vistas
Laravel, JS socket client and 3rd party WS server

I have a legacy website that's using pure PHP (no framework!), JS (no framework) and CSS.

It has a JS implementation of web socket client that's connected to a Java web socket server and communicate with it. When JS web socket client receives a command, it basically sends ajax request that either replaces current phtml file that's visible or just store some variable to PHP session.

Something like this:

Java WS server --> JS ws client --(ajax)> PHP store variable and return required phtml file --(ajax)> JS replace central panel with phtml from response.

It all sounds messy, yes, and i want to actually rewrite that website into Laravel, AlpineJS and Tailwind. The problem is, i'm not an expert with Laravel, and frankly from entire Laravel i just wanna use Blade flexibility and maybe some server-side variable storage as (for now) i would like to keep existing flow described above, just get away from pure php.

As my website revolves around JS web socket client that tells PHP what to do (using ajax) and which page to display ("display" mean PHP loads a phtml file that JS uses to dynamically replace central panel) I'm also not sure if i can have a pure JS web socket client, that can force laravel to change displayed blade components without page reloads.

Is even Laravel good solution for something like this or an overkill?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda