FG
📡 Networking

Duplicate events

Freshover 11 years ago
Mar 14, 20260 views
Confidence Score87%
87%

Problem

Here I create primitive example of server with socket.io with such stuff: - socket.io > 0.9.9 [code block] - node -v > v0.8.7 - https://github.com/Balloon/elephant.io _on x86_64 Linux_: Distributor ID: Ubuntu Description: Ubuntu 12.04.1 LTS Release: 12.04 Codename: precise Kernel: 3.2.0-29-generic GCC version: 4.6 (x86_64-linux-gnu) [code block] And PHP-client like this: [code block] Here is the log of that server: [code block] So, every time php-client sends one message or emits event, it's duplicated on the server side :(

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Duplicate events

Low Risk

I have the same issue, but I'm listening to a file on the server instead of waiting for PHP to send the notification. Could you find anything to resolve your issue? Here is mine: https://github.com/LearnBoost/socket.io/issues/999

84

Trust Score

1 verification

100% success
  1. 1

    I have the same issue, but I'm listening to a file on the server instead of wait

    I have the same issue, but I'm listening to a file on the server instead of waiting for PHP to send the notification. Could you find anything to resolve your issue? Here is mine: https://github.com/LearnBoost/socket.io/issues/999

Validation

Resolved in socketio/socket.io GitHub issue #997. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

socket.iowebsocketrealtime