Bug 568 - Websockets: Test & fix data change notifications
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / websockets / client / WebSocketClient.java
index 664aad6578c84fab98a3e569d00fa93dd3a1ee8d..bc915d0c86ddca2cc6959caec61f30a2a3ed92c1 100644 (file)
@@ -54,7 +54,7 @@ public class WebSocketClient {
     private void initialize() {
 
         String protocol = uri.getScheme();
-        if (!"http".equals(protocol)) {
+        if (!"ws".equals(protocol)) {
             throw new IllegalArgumentException("Unsupported protocol: " + protocol);
         }