Comments (6)
Do you need to go as far as using libsoup? Both libwebsockets and libsoup are doing 90% of what (i'm assuming, if it's anything like what libpurple) is doing under the hood, TCP/SSL connections.
I coded up my own basic websockets usage as part of the Pushbullet libpurple plugin, which certainly doesn't do 100% of what the websockets protocols are capable of, but might be enough for what Discord needs (or at least might be a starting point if you don't want to drag in another heavy dependency like libsoup)? https://github.com/EionRobb/pidgin-pushbullet/blob/master/libpushbullet.c#L256-L382
from bitlbee-discord.
Ouch, thats another reason to finally rewrite everything using libsoup that is at least stable and is under LGPL without any exceptions as far as I see.
from bitlbee-discord.
Nice, thanks for the pointer, I'll certainly look into this option.
from bitlbee-discord.
I emailed [email protected] about this, as suggested by the GPL FAQ. Their reply:
Hello and thank you for writing in.
Hi. The libwebsockets project uses a license that is based on LGPL 2.1
with a few exceptions.The full text is available here:
https://github.com/warmcat/libwebsockets/blob/master/LICENSE
The second exception reads:
- You do not have to provide a copy of the libwebsockets license with
programs that are linked to the libwebsockets library, nor do you have to
identify the libwebsockets license in your program or documentation as
required by section 6 of the LGPL.However, programs must still identify their use of libwebsockets. The
following example statement can be included in user documentation to
satisfy this requirement:"[program] is based in part on the work of the libwebsockets project
(https://libwebsockets.org)"Someone pointed out that this is equivalent to the BSD advertising
clause. I think this is closer to the following part of the
Independent JPEG Group license, which is included in the list of GPL
compatible licenses in the GNU website.(2) If only executable code is distributed, then the accompanying
documentation must state that "this software is based in part on the work of
the Independent JPEG Group".So, is it safe to use libwebsockets in a GPL project? Should they make
any changes to the wording of the exception to make it unambiguous?Thanks for your time.
My reading of the text is that they have only provided exceptions to the
terms of the LGPL. The requirement to provide notice with each copy of
the work that the Library is used in it is already a part of the LGPL,
so they aren't adding a new requirement by merely spelling that out.So with the disclaimer that I am not a lawyer and cannot provide you
with a legal opinion or assurance, I hope this is of help.
from bitlbee-discord.
Aha, I wonder if it being listed in "requirements" is an enough of a notice. Anyway I was thinking about moving on to something else for a long time and I'll leave this open to track that effort.
from bitlbee-discord.
The plugin is libwebsockets-free since d00ef51. Thanks.
from bitlbee-discord.
Related Issues (20)
- [FEATURE] HOT 2
- Add variable auto_join_whitelist ?
- discord - Login error: Connection timeout HOT 2
- Https links appear in the wrong query HOT 1
- Embeds not showing
- Using CFLAGS and LDFLAGS on command line to find bitlbee includes and libs HOT 6
- Threads support HOT 3
- Backlog fetching blocks Discord websocket heartbeat, Bitlbee response to PING HOT 5
- Login in is broken with glib2 >2.68 HOT 11
- Failed to switch to websocket mode HOT 2
- token location described in README out of date HOT 3
- Status aliases broken - "/away DND - some text" works, "/away Busy - some text" does not HOT 4
- Will bitlbee-discord work with a big account? HOT 3
- No incoming messages HOT 7
- Provide way to manually request backlog HOT 3
- Seeing own messages after change to new usernames HOT 1
- joining a discord channel doesn't show anyone else messages HOT 1
- Crashes on discord_parse_message
- discord - Login error: Failed to switch to websocket mode (and 400 bad request from cloudflare) HOT 3
- Add support for turning custom stickers into URLs (e.g. larger custom emoji)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitlbee-discord.