Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

disconnect

MySQL rollback on transaction with lost/disconnected connection

November 21, 2022 by Magenaut

I need to make MySQL server to rollback transaction immediately after its client disconnected, because each client works concurrently. The problem can be reproduced like these (using an innodb table type)

Categories MySQL, Q&A Tags disconnect, mysql, rollback, timeout, transactions Leave a comment

Socket.io disconnect client by id

October 4, 2022 by Magenaut

I’m new to nodejs and trying to write a chat room as so many people have.
The chat consists of multiple rooms and clients. Commands such as /nick /join /help /ls users /ls rooms work as you would expect although I’m having trouble with getting a /kick command to work.

Categories Node.js, Q&A Tags disconnect, node.js, socket.io Leave a comment

node.js doesn’t send socket on disconnect event

September 30, 2022 by Magenaut

When someone connects to the node server, I keep an array with all the sockets.
That way I can broadcast messages to everyone whenever that is needed or loop through the users to count the number of online users, etc.

Categories Node.js, Q&A Tags disconnect, node.js, socket.io Leave a comment

socket.io: disconnect event isn’t fired

September 29, 2022 by Magenaut

I have made a simple realtime visitor counter.

Categories Node.js, Q&A Tags disconnect, events, node.js, socket.io Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress