Skip to content

Tag: javascript

Cannot connect to socket io server

I have bot socket IO client and server running. I want to have client communicate with server. Server initialization Client initialization Socket IO debug output I enabled debug, but socket IO debug output is not very useful anyway: Notice that the listener for connection that I added triggers, but socket IO …

How do I check keystroke on blur using vue?

It’s not stated clearly in vue documentation nor did I find any similar questions online so I’m asking it here. I need a vue text input to return what the last keystroke is. The method that was tied to the blur event contains a data object so I cannot capture the default event object. I tried usin…

Electron window corners without radius?

I have an electron window with these properties: When I start it, everything works fine. But because my titlebar only shows on hover, I have an ugly edge on top and rounded edges on the bottom. I now want all of my corners to have a 0px radius. According to other resources on the Internet, it should automatic…

Only retrieve YYYY-MM-DD from moment

Doing moment().format() returns 2018-05-30T11:38:04+10:00. How can I retrieve only the 2018-05-30 part of it? Answer Here you go. You need to pass format string in moment().format(“you desired date/time format in string format”) function For more information, checkout this link for formatting : ht…