Skip to content

data strings changes over socket #3126

Closed
@yotamgever

Description

@yotamgever

Note: for support questions, please use one of these channels: stackoverflow or slack

You want to:

  • report a bug
  • request a feature

Current behaviour

when emitting an object as data and within it using a string of (or the unicode \u2265) it turns it to the string letter e and trurns to d

Steps to reproduce (if the current behaviour is a bug)

client side

channel.emit('data', {data:'≥'});

server side

socket.on('data',({data:bla})=>{
console.log(bla); // prints 'e'
});

Note: the best way to get a quick answer is to provide a failing test case, by forking the following fiddle for example.

Expected behaviour

that the data will stay the same consistently

Setup

  • OS: Windows
  • browser: Chrome 62
  • socket.io version: 1.7.2

Other information (e.g. stacktraces, related issues, suggestions how to fix)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions