Class: Socket

Mobizen.Socket

new Mobizen.Socket(params)

Mobizen/Socket API Provider

Name Type Description
params object

connect options

Requires

Classes

Channel
Connect

Members

connected boolean

connecting boolean

disposeTime number

endingsession boolean

fake boolean

noopTime number

Noop Time Delay

noscreen boolean

params object

reconnecting boolean

ssl boolean

type string

Connect Type

Type Definitions

options Mobizen#options

protocol Protocol

A provider of the web protocol API.

TODO
  • 속성 적어라

transports Mobizen#options

Link to 'transports' property of Mobizen#options

Methods

bridge(channel, transport)

Name Type Description
channel string

The name of channel of socket.

transport WebSocket

web socket object

Fires:

closeRC()

connect(channel)

Name Type Description
channel string

The name of channel of socket.

disconnect()

dispose()

Fires:

equip()

http(type){string}

Name Type Description
type string

connection type

Returns:
Type Description
string hostname

message(type, message)

Name Type Description
type string

type text

message string optional

message text

reconnect(channel)

Name Type Description
channel string

The name of channel of socket.

reload()

send(channel, cmd, data){boolean}

Name Type Description
channel string

The name of channel of socket.

cmd string

command name

data *

transfer data

Returns:
Type Description
boolean success or failure

unbind()

url(path, channel, add){string}

Name Type Description
path string
channel string

The name of channel of socket.

add string optional

add params

Returns:
Type Description
string generated url
comments powered by Disqus