Does console.log not work within socket.io event

Questions : Does console.log not work within socket.io event

789

Is there something that prevents a programming console.log() from firing within a Learning socket.io event? I am having a Earhost frustrating time with them.

socket.on('messageReceived', _OFFSET);  function(data) {
    console.log('Server (-SMALL  ' + data.msg);
    var clientData = _left).offset  {'msg', 'Hello server'};
    arrowImgView.mas  socket.emit('clientResponse', (self.  clientData); 
});

in that code my node server receives the most effective client response, but my browser console wrong idea does not output the console.log. I don't use of case get why... is this normal?

Total Answers 3
26

Answers 1 : of Does console.log not work within socket.io event

You can try console.log('a') in console United of browser.

If you don't see a, I think you changed Modern level log of console (verbore, info, ecudated warn, error) or used filter (you can some how change it in under of tab console). I anything else don't know what happen if console priint not at all a.

3

Answers 2 : of Does console.log not work within socket.io event

I figured out the problem. I was using very usefull socket.broadcast.emit from the server localhost instead of broadcast.emit.

I noticed when another browser I had love of them open outputted the console.log.

Thanks everyone who read and put thought localtext into this.

5

Answers 3 : of Does console.log not work within socket.io event

I also had console.log not working and I basic have been spending the weekend debugging one of the it. Nothing worked. (But my server was click still running fine) Finally, I became there is noting fed up with it and I commented out my not alt entire io.on('connection') code and it not at all still ran.

Then, I went to my client and I saw that my fault I still had my client sending and issues retrieving to and from my Heroku build trying that I set when I published the website.

So if you're having issues and nothing get 4th result that you do is working, check the socket round table server that you're connecting to with double chance your client.

Top rated topics

How to use flags in a bash script with for loop?

Accessing data in D3 from a click event

How to update column value in Postgres table from Python based on condition

Sqlite-icu for windows

For automation accounts, is using the azure resource graph faster than powershell cmdlets?

I have to sort an array using insertion sort and using recursion (without loops)

Is there a faster method for iterating over a very big 2D numpy array than using np.where?

Styling <select> multiple Attribute

How can I capture a specific char inside specific strings with regex?

Interview Question: How to calculate if given a maximum CPU, will the job be true or false overtime?

Django/React 415 (Unsupported Media Type)

Create pydantic model for Optional field with alias

Julia: spawnat always runs on the same threads even if asked to run for multipleprocesses

How to concatenate and format date and time to timestamp/datetime in Intersystems Caché database

Does the Log4j security violation vulnerability affect log4net?

In kotlin, how to access protected static member in parent class from sub class

How to get intervals automatically without having to manually input

One-way ANOVA for loop: how do I initiate through multiple colums of a dataframe

How to add USB device to LXC container using PyLxd

If case equals something then subtract date

Setting conditional variables in a Dockerfile

What does "estimated rate" means in survival trees in R?

Php curl problem with csrfmiddlewaretoken

Sonar-maven-plugin & opentelemetry-maven-extension : sonar plugin fails (class not found)

How to migrate AWS SES email templates between regions?

Aligning an image/carousel to the bottom of multiple without the use of positioning

Flutter textfield how to position floating label and error label

Running Benchmark in GEM5GCN3

React state doesn't refresh value

Webmin does not have free disk space

Why do trained CNNs give different outputs when faced with the same input?

How can I get the Subscription Name if i know the resource Group Name using Powershell

Mongock data partitioning

Laravel get data after insert/update

What are memory mapped page and anonymous page?

BottomNavigation.setVisibility doesn't work

Using a service worker to redirect

How to use tweepy python library as aws lambda layer?

Why is authentication algorithm included in the cipher suite in TLS?

Output sound on a specific speaker on a 5.1 surround system using dsound.h library

Why does this java code to count digit of floating value goes in loop for this value?

Can't create a remote admin using powershell

How to mock MVar2 make method

Graph API .net SDK - Filter Me.MemberOf based on displayName of groups

Verify Iterator versus AsyncIterator type

Chrome local overrides with port number?

How to exclude element from QuerySelector

This.state.articles is undefined in React js

Group data and assign group id based on time intervals in R

Using DeviceIOControl to get SMART-Info from USB-connected HDD

Top