WebSocketShared

class Object
trait Matchable
class Any

Type members

Classlikes

final case class CloseCode(value: Int)
Companion:
object
object CloseCode
Companion:
class
final case class CloseReason(code: CloseCode, phrase: CloseReasonPhrase)
Companion:
object
Companion:
class
final case class CloseReasonPhrase(value: String)
Companion:
object
Companion:
class
final case class ReqId(value: Int)
Companion:
object
object ReqId
Companion:
class

Types

type ClientToServer[Req] = (ReqId, Req)
type ServerToClient[Codec[_], Push] = Either[Push, (ReqId, AndValue[Codec])]

Value members

Concrete methods

def limitUtf8Bytes(s: String, maxBytes: Int): String

Returns a prefix of a string such that it's utf-8 encoding doesn't exceed a given number of bytes.

Returns a prefix of a string such that it's utf-8 encoding doesn't exceed a given number of bytes.