rejetto forum

Maybe... Websockets?!!

0 Members and 1 Guest are viewing this topic.

Offline username1565

  • Occasional poster
  • *
    • Posts: 35
    • View Profile
Is there any ability for HFS to working with WEBSOCKETS?
I cann't found keyword "websockets" on this forum.
Can you realize this ability? In this case, users can chat with server, using only one connection,
and no need to send many XHR-queries and open many connections.
I have Websocket server, writted on c# here: https://github.com/username1565/Fleck2
See source code, and this issue: https://github.com/username1565/Fleck2/issues/1
For introduction, and test this, if you still have not work with Websockets.

Have a nice day!
« Last Edit: October 23, 2019, 01:16:56 AM by username1565 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
hi, websockets are nice, but hfs is missing much more basic features, considering its file-server nature :)


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
@1565

You can convert your websockets server as a proxy to translate request to hfs with some spécial section


Offline username1565

  • Occasional poster
  • *
    • Posts: 35
    • View Profile
@1565

You can convert your websockets server as a proxy to translate request to hfs with some spécial section
Ok. Good. But I think, will be better to you can realize this as separate internal module.
For example, to do live updating the dynamic data, or chat, or show the stats about downloading on the webpage,
will be better to keep one connection with client,
and do not accept from this client many connections, after sending each query on the server,
which will be closed by client, after receive response.
But if you offer to open many connections on the proxy, then this websocket-connection have no any sence,
and server loading still not will be lower. ;D

hi, websockets are nice, but hfs is missing much more basic features, considering its file-server nature :)
I just leaved it here, because if you have free time, you can just for fun, see the documentation, about how it works,
and see that source code, about how to implement it, up to .NET Framework 2.0,
and maybe, using this code, you can implement this too, but on Objective Pascal, and more easy.

Cheers!
« Last Edit: October 23, 2019, 10:17:11 PM by username1565 »


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 911
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
may be with ubuntu wine and some iptable/ firewall commands.
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
my attempt at building HFS 3 included websockets, with real-time refreshing of the file list :)
https://github.com/rejetto/hfs

sadly i don't have currently time to bring on that project


Offline dj

  • Tireless poster
  • ****
    • Posts: 291
  • 👣 🐾
    • View Profile
    • PWAs

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
SSE is interesting for cases when it's hard to get websockets.
At work we created something very similar 1 year ago, not knowing this standard, otherwise we would have followed it.
Pity Edge doesn't support it.


Offline dj

  • Tireless poster
  • ****
    • Posts: 291
  • 👣 🐾
    • View Profile
    • PWAs
Edge79 (is being rolled out. I don't have it yet) supports it

in my aforementioned apps I fallback to polling if not supported