Open Xe opened 9 years ago
This is a thing? Do any other ircds support it?
It was a thing that was heavily indev and didn't really work based off this fork of ircd-ratbox.
@dequis found https://github.com/warmcat/libwebsockets which will help immensely.
Actually. I have a better idea. This is kind of terrible but it could be done in a way that would allow for extension to other things.
(Xena) i have a really bad idea on how to add websockets to elemental
(Xena) you know how HTTP headers are separated by \r\n?
(Xena) what if m_websocket.so adds commands for the http headers
(Xena) and then use weechat's relay websocket code
(Xena) but basically
(Xena) you'd have a pre-registration command GET
(Xena) and commands UPGRADE: and CONNECTION:
(Xena) the parv[0] of upgrade: needs to be websocket
(Xena) the parv[0] of connection: need to be upgrade
(Xena) however
(Xena) need to add a little more hooking and the like to the
core so that the websocket read/write semantics can replace
the standard socket ones
(Xena) but that is not hard
Old branch at
websockets
. Would be nice but not required for 7.0.