WebSocket Client Library for Scala

A simple WebSocket Client for Scala

License

License

GroupId

GroupId

org.jfarcand
ArtifactId

ArtifactId

wcs
Last Version

Last Version

1.5
Release Date

Release Date

Type

Type

jar
Description

Description

WebSocket Client Library for Scala
A simple WebSocket Client for Scala
Source Code Management

Source Code Management

https://github.com/jfarcand/WCS.git

Download wcs

How to add to project

<!-- https://jarcasting.com/artifacts/org.jfarcand/wcs/ -->
<dependency>
    <groupId>org.jfarcand</groupId>
    <artifactId>wcs</artifactId>
    <version>1.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.jfarcand/wcs/
implementation 'org.jfarcand:wcs:1.5'
// https://jarcasting.com/artifacts/org.jfarcand/wcs/
implementation ("org.jfarcand:wcs:1.5")
'org.jfarcand:wcs:jar:1.5'
<dependency org="org.jfarcand" name="wcs" rev="1.5">
  <artifact name="wcs" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jfarcand', module='wcs', version='1.5')
)
libraryDependencies += "org.jfarcand" % "wcs" % "1.5"
[org.jfarcand/wcs "1.5"]

Dependencies

compile (2)

Group / Artifact Type Version
com.ning : async-http-client jar 1.9.28
org.scala-lang : scala-compiler jar 2.11.7

test (7)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 2.2.4
junit : junit jar 4.8.1
ch.qos.logback : logback-classic jar 0.9.26
org.eclipse.jetty : jetty-servlet jar 7.6.0.v20120127
org.eclipse.jetty : jetty-server jar 7.6.0.v20120127
org.eclipse.jetty : jetty-websocket jar 7.6.0.v20120127
org.eclipse.jetty : jetty-servlets jar 7.6.0.v20120127

Project Modules

There are no modules declared in this project.

wCS: An Asynchronous WebSocket Client Library for Scala.

A really simple WebSocket library that works with node.js, Atmosphere or any WebSocket server! As simply as

     WebSocket().open("ws://localhost")
        .listener(new TextListener {
            override def onMessage(message: String) {
                // Do something
            }
        })
        .send("Hello World")
        .send("WebSockets are cool!")
        .listener(new BinaryListener {
            override def onMessage(message: Array[Byte]) {
                // Do something
            }
        })
        .send("Hello World".getBytes)

Download using Maven

     <dependency>
         <groupId>org.jfarcand</groupId>
         <artifactId>wcs</artifactId>
         <version>1.4</version>
      </dependency>

or a single artifact that contains all its dependencies

     <dependency>
         <groupId>org.jfarcand</groupId>
         <artifactId>wcs-all</artifactId>
         <version>1.4</version>
      </dependency>

Versions

Version
1.5
1.4
1.3.1
1.3
1.2
1.1
1.0.1
1.0.0