Can you run a pure JavaScript WebRTC setup? Not just the client side getUserMedia() but actual ICE STUN and TURN servers.. I'd been thinking about this for a while and a recent conversation brought it back to mind. So I decided to give it a go. node-rtc implements the core WebRTC stack in Node.js with ICE STUN TURN and signaling. I'm not really sure what I'll do with it but I guess it's one step closer to building mesh networking into my app. 😁 https://lnkd.in/eKfZxuQa #WebRTC #JavaScript #NodeJS
Gerard Payne’s Post
More Relevant Posts
-
Why does an uncaught exception crash a Node.js server? It's common in asynchronous callbacks and functions that have no exception handling. During the process, the async callback is pushed to the event queue and gets executed. If it doesn't have any try/catch surrounding an exception, it's on its call stack. If an error is thrown in this case, it will be moved to the top of the event loop tick. As the error is unhandled in an async context, Node considers the app to be unstable and terminates the process with a non-zero error code. Node.js takes this decision because, as the event loop is single-threaded, there is no higher context to return from. And continuing might lead to unknown issues. So, it is better to terminate the process. Even if calling a function is wrapped with try/catch, it won't help, as that operates in a different call stack. However, Node.js emits a special event, uncaughtException, which can be used to log the reason. Cheers! #nodejs #backend #javascript #server
To view or add a comment, sign in
-
Everyone talks about React Server Components reducing bundle size. That's true. But it's not the real win. The real win is being forced to think about where your logic lives. After using RSC across 30+ projects, here's what I learned: Moving every component to the server is over-engineering. Anything interactive stays on the client — no exceptions. The actual gain: keeping data-heavy logic close to the source. Once that clicks, everything else falls into place. What was your biggest "aha moment" with RSC? #react #nextjs #typescript #webdevelopment
To view or add a comment, sign in
-
JavaScript is the language that lets you build almost anything—interactive websites, servers, apps, and real-time experiences. One moment you feel unstoppable creating features at lightning speed, and the next you’re deep in debugging undefined errors, mysterious type coercion, and code that worked perfectly yesterday. That’s the beauty of JavaScript: challenging, unpredictable, and endlessly rewarding. Every bug solved is another lesson earned. #JavaScript #WebDevelopment #CodingLife #FrontendDeveloper #ProgrammerHumor
To view or add a comment, sign in
-
-
Most Node.js developers ship this bug without knowing it. 🚨 You write an async route in Express. The app crashes. No error caught. Server just... dies. 💀 Why? Express doesn't catch async errors by default. The fix? One simple wrapper: → asyncHandler wraps your route → Catches any rejected promise → Passes it to your global error middleware One wrapper. Zero crashes. 🔥 This is one of those things nobody tells you when you start with Express. You only learn it after your first production incident. 𝗦𝗮𝘃𝗲 𝘁𝗵𝗶𝘀 𝗽𝗼𝘀𝘁. 𝗬𝗼𝘂'𝗹𝗹 𝗻𝗲𝗲𝗱 𝗶𝘁. 🔖 ♻️ Repost to save a fellow developer's server today. #NodeJS #ExpressJS #JavaScript #Backend #CleanCode #WebDevelopment #100DaysOfCode
To view or add a comment, sign in
-
-
Spent 20 minutes debugging why the Next.js 16 application is not loading on safari browser. Turns out Next.js 16 is not supported on Safari browser version less than 16.4.😄 So make sure to always check supported version before wasting hours on debugging. #javascript #reactjs #nextjs #webdevelopment
To view or add a comment, sign in
-
-
TypeScript Started. Migrating SafelyRest from JavaScript to TypeScript Links:- • GitHub https://lnkd.in/gwfXsp_3 • App https://lnkd.in/d5JnhrGz • Configured "tsconfig" with strict mode • Added strong typing across controllers, services, and models • Replaced "any" with proper types, interfaces, and generics • Implemented type-safe API requests/responses • Added types for env variables and external libraries • Improved async handling with proper Promise types • Better debugging with compile-time error detection #typescript #javascript #backend #fullstack #nodejs #webdevelopment
To view or add a comment, sign in
-
-
💯 npm vs npx: What's the Difference? If you’re a JavaScript developer, you’ve probably seen both npm and npx in action. But what exactly is the difference? 📦 npm (Node Package Manager) ✅ Used for: Installing, managing, and updating packages globally or locally ✅ Example: npm install create-react-app -g ✅ Stores the package permanently on your system ⚡ npx (Node Package Execute) ✅ Used for: Running packages without installing them globally ✅ Example: npx create-react-app my-app ✅ Fetches the latest package version on-the-fly 🚀 When to Use What? 🔹 Use npm when you need to install a package for regular use 🔹 Use npx when you need to execute a one-time command without installing Follow me for your daily dose of web development insights. 💡 Which one do you use more often? Drop a comment below! 👍 Found this useful? Like it! 🔁 Share to help others. 🔖 Save for quick reference. 📤 Forward to a friend. 💬 Join the discussion in the comments! #Frontend #javascript #npm #npx #typescript #optimizations
To view or add a comment, sign in
-
Most developers blame the server… but plot twist: it’s your browser playing gatekeeper 😏 CORS isn’t about blocking requests — it’s about controlled trust between origins. 🚫 Without CORS → Browser says “Not today.” ✅ With CORS → Server says “You’re allowed, come in.” Key takeaway: 👉 Server allows 👉 Browser enforces If you’ve ever spent hours debugging a “CORS error”… welcome to the club 🤝 #WebDevelopment #CORS #JavaScript #Frontend #Backend #APIs #DevLife #TechExplained
To view or add a comment, sign in
-
-
Ever wondered why Node.js projects have BOTH package.json and package-lock.json? 🤔 Here’s the simplest way to understand it: 📦 package.json = the plan (what you want) Lists your project dependencies Uses flexible versions (like ^18.2.0) Example: “Install React and compatible versions” 🔒 package-lock.json = the reality (what you actually get) Automatically generated by npm Locks exact versions of every dependency (including sub-dependencies) Ensures everyone installs the SAME versions 💡 Why this matters: Without the lock file, your app might work on your machine but break on someone else’s due to version differences. 🧠 Think of it like: package.json → Shopping list 🛒 package-lock.json → Final bill/receipt 🧾 ✅ Best practices: Always commit both files Don’t edit package-lock.json manually Use npm ci for consistent installs in production 🚀 Bottom line: package.json tells npm what you want, package-lock.json ensures you always get exactly that. #NodeJS #JavaScript #WebDevelopment #npm #SoftwareDevelopment
To view or add a comment, sign in
-
What is the purpose of bundlers and dev servers in your front-end framework or library 🤔 ? Bundlers 📦: These are the organizers 🗄️ of your code. They take all your individual files (CSS 🎨, JavaScript 📜, etc.) and bundle them into highly optimized files 💎, making your application load faster for users ⚡💨. Dev Servers 🛠️: These are your local testing ground 🏗️. They spin up a local server 🌐 so you can view your application in real time 🕒. Some, like Vite ⚡, even feature “Hot Module Replacement" 🔥🔄, automatically updating your browser with any changes you make in real-time 👨💻👩💻. 🅰️ Angular = ESBuild + Vite ⚛️ React = Rollup + Vite 🟢 Vue = Rollup + Vite Feel free to repost 🔄, and follow for more tips ✨. #angular #bundlers #devservers #react #vue
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development