Atomic docs

BitStream:Send

BitStream:Send(priority: number?, reliability: number?, channel: number?): boolean

Sends what the stream holds, with the same defaults as raknet.send.

Example

lua
local bs = raknet.new()
bs:WriteU8(83)
bs:WriteString("hello")
print(bs:Send())
↑