Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

341
Views
How do I use websockets with gjs(Gnome JavaScript)?

I am trying to create a simple application in GJS that sends desktop notifications based on json received via WebSocket. What is the easiest way to use WebSocket in GJS? Thanks in advance.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

I wrote an example here https://gitlab.gnome.org/GNOME/gjs/-/blob/master/examples/websocket-client.js

If you would like to use a similar API to browsers, have a look at https://github.com/sonnyp/troll

about 4 years ago · Juan Pablo Isaza Report

0

In GJS you'll probably have to use libsoup for this.

The GJS documentation is at https://gjs-docs.gnome.org/soup30, such as the Soup.WebSocketConnection.

You'll probably also want to read the upstream documentation which includes some introductory material.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!