title: Spring 4 websocket without STOMP,socketjs
body: <p>I am trying to test websocket without using socketjs library and also i don't want to add any stomp connection. </p>
  
  <p>I am following the example from stackoverflow question:
  <a href="https://stackoverflow.com/questions/27158106/websocket-with-sockjs-spring-4-but-without-stomp">WebSocket with Sockjs &amp; Spring 4 but without Stomp</a></p>
  
  <p>So without stomp server , I have succeeded to connect via socketjs library with a url : ws://localhost:8080/greeting/741/0tb5jpyi/websocket</p>
  
  <p>And now  I want to remove the socketjs library to allow raw websocket connection(may be devices such as android,ios, etc...) </p>
  
  <p>When I remove the parameter : .withSockJS(), I couldn't  connect via websocket. </p>
  
  <p>I tried the following URLs, but they didn't work:</p>
  
  <pre><code>ws://localhost:8080/greeting/394/0d7xi9e1/websocket not worked
  ws://localhost:8080/greeting/websocket not worked
  ws://localhost:8080/greeting/ not worked 
  </code></pre>
  
  <p>which URL should i use to connect ?</p>