I got curious how GitHub rerender components when issue updated and found they use WebSocket in SharedWorker.
But why do they use it inside of SharedWorker, not in main thread? What's the main benefit from using WebSocket with one more thread?
Why GitHub use SharedWorker for WebSocket
414 Views Asked by lcpnine At
1
There are 1 best solutions below
Related Questions in SOCKETS
- Drawing with ncurses, sockets and fork
- UDP sockets in C not working
- How can I send multiple objects over one socket in java?
- psuedo TCP multicast with os.dup2() in python?
- My get request for http is very slow
- Nodejs connect mysql socket to another host?
- HttpRequestContext vs HttpContext
- Spring based client server communication without network
- Java does not accept 2 methods with same name
- Retrieve Data From EOC(Eithernet Over coxial) device
- Ping a server without freezing the Thread
- C sockets: Exit client after all data is received
- What is the best way to send XML converted to a byte array over TCP, then translate the response back to readable XML?
- C# Winform to Connect to Device Using IP
- Java Restart a Socket
Related Questions in GITHUB
- How do I create my own Git branch to work on?
- Tools for Apache Cordova - Installed Plugins are skipped in build
- Permission denied hg-git
- git hard reset - what am I doing wrong?
- Merge Pull Request Manually
- rebasing interactively, but only one commit shows up?
- Error when adding a new build stage on Bluemix DevOps Services
- What should I do if I put MS Office (e.g. .docx) or OpenOffice( e.g. .odt) document into a git repository?
- How to trigger git hooks without pushing to the repo
- How to push a Git server repository issues to Github repository?
- How to backup an AOSP project on GitHub
- How to reference comments in github.com?
- Aptana, github & remote (sftp) files
- Opening PDF in a browser with Github Pages
- I need git to include the parent directory
Related Questions in WEBSOCKET
- How to send raw data using socket.io
- HttpRequestContext vs HttpContext
- Websocket support on JBoss 6
- How to send/receive messages through a web socket on windows phone 8.1
- Stop receiving an event for some time in socket io
- Nginx not passing websocket upgrade response back to client?
- Jboss showing this error in eclipse
- Oauth in Tyrus WebSocket
- Meteor: Workaround for having websockets blocked in port 80?
- Python Server - Processing WebSocket.close()
- Multithread using Executor and WebSocket
- Start Rumpetroll on Debian
- What are the possible bugs that cause slow response (sometimes but not all the time) for a websocket connection?
- Ratchet websocket server not responding after some hour
- Angularjs data is not updated on call of $apply
Related Questions in WORKER
- How to ensure in Rails that Resque queues works each on in a different job?
- Worker management for durable queue in Redis
- How to get the current list of Worker Request from IIS using C#?
- Heroku error when trying to launch foreman
- What is the role of the last argument ( $uniqueId ) in PHP Gearman's doNormal()?
- Best way to check multiple tasks done in Celery?
- Implement worker with RabbitMQ Consumer
- Why is my Rails app hanging?
- How to see log on a AWS Worker in PHP?
- Apache can't create more than 400 workers
- Weird HTML5 Worker JavaScript code (messages)
- How can l launch each worker in a multiprocessing.Pool in a new shell?
- How between-graph replication with asynchronous updates in Tensorflow runs?
- Recommendations for adding spot EC2 instances for short-term workload
- How to get the worker info of a task id in JStorm?
Related Questions in SHARED-WORKER
- How to call shared worker from the web worker?
- Sharedworkers in Firefox
- How to configure Angular-CLI-generated project to include a SharedWorker
- How to share data with SharedWorker
- Why doesn't SharedWorker expose exactly 1 port per client?
- Failed to fetch a worker script. VueJS application
- Best/proper way to share a single WebSocket connection across multiple tabs
- How to implement mqtt over websockets in browser clients?
- Pusher - Shared web worker variable scope
- Sharing Websocket connection between multiple tabs?
- Shared Worker does not work. even though I see it in the task manager the self.onconnect method does not fired
- electron: How to open chrome://inspect special urls in BrowserWindow to debug SharedWorkers
- How can I execute a function every time fetch() is used in Javascript?
- Why GitHub use SharedWorker for WebSocket
- communication between sharedworkers
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Usually, you create a WebSocket connection within a SharedWorker when you want multiple tabs or windows of the same browser instance to be able to share that connection. So, if you open multiple tabs on the same site (in this case, GitHub), one single WebSocket connection will be enough for them all.
For example, we use this technique in the client API we provide for our own WebSocket server (ConnectionSharing object).