• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

[Request/PR] Expose REST-API functionality inside websocket connection

Scheduled Pinned Locked Moved Feature Requests
3 Posts 2 Posters 1.3k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • accaliaA Offline
    accaliaA Offline
    Accalia Elementia Plugin & Theme Dev
    wrote on last edited by
    #1

    The REST API is great, but there's no analog for it in the websocket connection used by NodeBB.

    I have an application i'm working on that I would like to expose these functions in the websocket as well. This would allow me to avoid having to shuffle multiple cookiejars around my application as the multiple users that the application connects as perform their various tasks.

    I have a PR prepared that adds in the basic read functionality of the RestAPI to the websocket connection, and i have plans to add the remaining endpoints of the REST API in the near future.

    .... Am I doing this right? It's my first time trying to contribute to this project.... :nervous:

    1 Reply Last reply
    2
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    I'll comment on the PR

    1 Reply Last reply
    1
  • accaliaA Offline
    accaliaA Offline
    Accalia Elementia Plugin & Theme Dev
    wrote on last edited by
    #3

    Many Thanks! this will make my application much simpler and more robust.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development