Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I see you have the variables:
- nodejs_socket_io_path
- nodejs_socket_io_type
that are not really being used currently.
Patch to use external socket.io.js client files like:
https://cdn.socket.io/socket.io-1.1.0.js
Settings configured on /admin/config/nodejs/config
Comment | File | Size | Author |
---|---|---|---|
#2 | socket-io-settings.png | 37.37 KB | monstrfolk |
#2 | external-socket.io_.js-option-2389917-2.patch | 2.31 KB | monstrfolk |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI would be interested in seeing what you've come up with.
Comment #2
monstrfolk CreditAttribution: monstrfolk commentedPatch to allow configuration for external socket.io client for minified js. Good for SEO.
Comment #3
monstrfolk CreditAttribution: monstrfolk commentedComment #4
monstrfolk CreditAttribution: monstrfolk commentedComment #5
monstrfolk CreditAttribution: monstrfolk commentedComment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI just came across this. More of an FYI:
https://github.com/socketio/socket.io/issues/1847
And that issue mentioned this cdn for socket.io:
https://cdn.socket.io/socket.io-1.2.0.js
List of CDNs:
https://cdnjs.com/libraries/socket.io
Are there others?
Comment #7
monstrfolk CreditAttribution: monstrfolk commentedThe minified option is gone from socket.io 1 and above.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedthanks! pushed to 7.x.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedchanging to D8.