activityoverlord icon indicating copy to clipboard operation
activityoverlord copied to clipboard

Uncaught TypeError: socket.get is not a function

Open ibrahimovfuad opened this issue 10 years ago • 4 comments

I am using your app.js file and i have an error like a Uncaught TypeError: socket.get is not a function when i am trying to make a requet socket.get("/user/subscribe"); but in browser console sails.io is connected . this is what i see in console

Connecting to Sails.js...

app.js:20 Uncaught TypeError: socket.get is not a function

|>    Now connected to Sails.

___/ For help, see: http://bit.ly/1DmTvgK (using browser SDK @v0.11.0)

ibrahimovfuad avatar Aug 12 '15 18:08 ibrahimovfuad

same problem here

Master244 avatar Oct 03 '15 20:10 Master244

I too having same issue @irlnathan

rahulserver avatar Jul 21 '16 09:07 rahulserver

Yeah,same problem here

agbilotia1998 avatar May 21 '17 06:05 agbilotia1998

I used io.socket.get and this worked (in my own application. I got here via google).

http://sailsjs.com/documentation/reference/web-sockets/socket-client/io-socket-get

jsonpoindexter avatar Aug 10 '17 03:08 jsonpoindexter