Actually also register the WebSocket transfer to the bck2brwsr context
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 10 Sep 2013 15:40:00 +0200
changeset 12781dac1da89357
parent 1277 853245102164
child 1279 6e49193b04f1
Actually also register the WebSocket transfer to the bck2brwsr context
ko/bck2brwsr/src/main/java/org/apidesign/bck2brwsr/ko2brwsr/BrwsrCtxPrvdr.java
     1.1 --- a/ko/bck2brwsr/src/main/java/org/apidesign/bck2brwsr/ko2brwsr/BrwsrCtxPrvdr.java	Tue Sep 10 15:39:33 2013 +0200
     1.2 +++ b/ko/bck2brwsr/src/main/java/org/apidesign/bck2brwsr/ko2brwsr/BrwsrCtxPrvdr.java	Tue Sep 10 15:40:00 2013 +0200
     1.3 @@ -21,6 +21,7 @@
     1.4  import org.apidesign.html.context.spi.Contexts;
     1.5  import org.apidesign.html.json.spi.Technology;
     1.6  import org.apidesign.html.json.spi.Transfer;
     1.7 +import org.apidesign.html.json.spi.WSTransfer;
     1.8  import org.openide.util.lookup.ServiceProvider;
     1.9  
    1.10  /** This is an implementation package - just
    1.11 @@ -40,7 +41,8 @@
    1.12      public void fillContext(Contexts.Builder context, Class<?> requestor) {
    1.13          if (bck2BrwsrVM()) {
    1.14              context.register(Technology.class, BrwsrCtxImpl.DEFAULT, 50).
    1.15 -            register(Transfer.class, BrwsrCtxImpl.DEFAULT, 50);
    1.16 +            register(Transfer.class, BrwsrCtxImpl.DEFAULT, 50).
    1.17 +            register(WSTransfer.class, BrwsrCtxImpl.DEFAULT, 50);
    1.18          }
    1.19      }
    1.20