Remove buffer dependency
This commit is contained in:
@@ -13,7 +13,7 @@ export interface SubscribeMessage {
|
||||
* @param properties The properties for the message.
|
||||
* @returns An outgoing subscribe (0x0000) packet.
|
||||
*/
|
||||
export function packSubscribeMessage (properties: SubscribeMessage): Buffer {
|
||||
export function packSubscribeMessage (properties: SubscribeMessage): Uint8Array {
|
||||
const data = numberToUint16BE(properties.messageType)
|
||||
return packOutgoingPacket({
|
||||
messageType: MESSAGE_TYPE,
|
||||
|
||||
Reference in New Issue
Block a user